reset induction heater on exit

This commit is contained in:
Sebastien Bourdeauducq 2020-08-11 18:36:17 +08:00
parent 946eb113bb
commit 2c05dda88a
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ class InductionHeater:
self.queue.put(amount, block=False) self.queue.put(amount, block=False)
def stop(self): def stop(self):
self.queue.put(0.0, block=True)
self.queue.put(None, block=True) self.queue.put(None, block=True)
self.thread.join() self.thread.join()
self.serial.close() self.serial.close()