forked from M-Labs/kirdy
eth_cmd_test: Reset ld current to 0A during SIGINT
This commit is contained in:
parent
89d415194d
commit
d2efc02b6a
|
@ -93,6 +93,8 @@ def read_cmd(input, socket):
|
|||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
|
||||
def signal_handler(sig, frame):
|
||||
ld_cmd["data_f64"] = 0.0
|
||||
send_cmd(ld_cmd, s)
|
||||
send_cmd(tec_power_down, s)
|
||||
s.close()
|
||||
exit()
|
||||
|
|
Loading…
Reference in New Issue