eth_cmd_test: Reset ld current to 0A during SIGINT

This commit is contained in:
linuswck 2024-02-15 12:47:19 +08:00
parent 89d415194d
commit d2efc02b6a
1 changed files with 2 additions and 0 deletions

View File

@ -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()