From 2447025fa62d89c1e3a31d09bb97e04522444b0c Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 16 Sep 2020 21:27:27 -0400 Subject: [PATCH] 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 --- klippy/mcu.py | 2 -- 1 file changed, 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 "): """