# HG changeset patch # User Daniel O'Connor # Date 1638754650 -37800 # Node ID 9c2e0844459870efab33fc60c8601f82935b7136 # Parent 3067bb98b4829bf44511da41cfb3b3e820c7bc95 Make sure timer is called more than once. Not sure how this worked earlier.. diff -r 3067bb98b482 -r 9c2e08444598 eprodbus.py --- a/eprodbus.py Mon Dec 06 11:27:37 2021 +1030 +++ b/eprodbus.py Mon Dec 06 12:07:30 2021 +1030 @@ -144,6 +144,7 @@ row['tstamp'] = int(datetime.datetime.now().strftime('%s')) cur.execute('INSERT INTO eprolog VALUES (:tstamp, :main_voltage, :aux_voltage, :battery_curr, :amp_hours, :state_of_charge, :time_remaining, :battery_temp, :auto_sync_volts, :auto_sync_curr, :e501, :alarm_test, :light, :display_test, :temp_sensor, :aux_hv, :aux_lv, :installer_lock, :main_hv, :main_lv, :low_battery, :battery_flat, :battery_full, :battery_charged, :no_sync, :monitor_reset)', row) self.dbh.commit() + return True def doexit(signum, frame): sys.exit(1)