changeset 17:3067bb98b482

Fix signal handling by using the correct function signature.
author Daniel O'Connor <darius@dons.net.au>
date Mon, 06 Dec 2021 11:27:37 +1030
parents 3338e666256b
children 9c2e08444598
files eprodbus.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/eprodbus.py	Mon Dec 06 11:27:23 2021 +1030
+++ b/eprodbus.py	Mon Dec 06 11:27:37 2021 +1030
@@ -145,7 +145,7 @@
         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()
 
-def doexit():
+def doexit(signum, frame):
     sys.exit(1)
 
 def main():