Skip to content

Commit

Permalink
adjust verbose messaging for ant. calibr.
Browse files Browse the repository at this point in the history
  • Loading branch information
ironsheep committed Sep 10, 2020
1 parent 53aeb03 commit 79aea48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AS3935/AS3935_i2c_spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def set_display_trco(self, display_trco):
"""
current_value = self.read_byte(0x08)
if display_trco:
self.write_byte(0x08, (current_value | 0b100000))
self.write_byte(0x08, (current_value | 0b00100000))
else:
self.write_byte(0x08, (current_value & 0b11011111))

Expand Down
3 changes: 2 additions & 1 deletion ISP-lightning-mqtt-daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

signal(SIGPIPE,SIG_DFL)

script_version = "2.2.4"
script_version = "2.2.5"
script_name = 'ISP-lightning-mqtt-daemon.py'
script_info = '{} v{}'.format(script_name, script_version)
project_name = 'lightning-detector-MQTT2HA-Daemon'
Expand Down Expand Up @@ -975,6 +975,7 @@ def report_current_accumulator(topic):
#detector.set_tune_antenna(tuning_capacitor)
print_line('* Calibrate with antenna cap. set to {}'.format(hex(tuning_capacitor)), verbose=True)
detector.full_calibration(tuning_capacitor)
print_line('- Calibration Complete -', verbose=True)
# Prevent single isolated strikes from being logged => interrupts begin after 5 strikes, then are fired normally
detector.set_min_strikes(detector_min_strikes)

Expand Down

0 comments on commit 79aea48

Please sign in to comment.