From 2c05dda88a8c359e449b4e649057b26cca2000b0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 11 Aug 2020 18:36:17 +0800 Subject: [PATCH] reset induction heater on exit --- noptica.py | 1 + 1 file changed, 1 insertion(+) diff --git a/noptica.py b/noptica.py index 75ed5e8..6116605 100644 --- a/noptica.py +++ b/noptica.py @@ -100,6 +100,7 @@ class InductionHeater: self.queue.put(amount, block=False) def stop(self): + self.queue.put(0.0, block=True) self.queue.put(None, block=True) self.thread.join() self.serial.close()