aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-09-16 21:27:27 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-09-16 23:53:45 -0400
commit2447025fa62d89c1e3a31d09bb97e04522444b0c (patch)
tree7bb28a878a0c2bb6436530398c86da0fe38b75fc /klippy/mcu.py
parent3efb424d66362d498b46343aaea39a151395b378 (diff)
downloadkutter-2447025fa62d89c1e3a31d09bb97e04522444b0c.tar.gz
kutter-2447025fa62d89c1e3a31d09bb97e04522444b0c.tar.xz
kutter-2447025fa62d89c1e3a31d09bb97e04522444b0c.zip
mcu: Don't define a __del__() method
The existence of a __del__() method prevents deallocation on python2 if there are circular references. Just remove the method as disconnect() should already be called directly. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r--klippy/mcu.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index 869688f9..b7837638 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -766,8 +766,6 @@ class MCU:
self._mcu_tick_stddev)
return False, ' '.join([msg, self._serial.stats(eventtime),
self._clocksync.stats(eventtime)])
- def __del__(self):
- self._disconnect()
Common_MCU_errors = {
("Timer too close", "No next step", "Missed scheduling of next "): """