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>
This commit is contained in:
parent
3efb424d66
commit
2447025fa6
|
@ -766,8 +766,6 @@ class MCU:
|
||||||
self._mcu_tick_stddev)
|
self._mcu_tick_stddev)
|
||||||
return False, ' '.join([msg, self._serial.stats(eventtime),
|
return False, ' '.join([msg, self._serial.stats(eventtime),
|
||||||
self._clocksync.stats(eventtime)])
|
self._clocksync.stats(eventtime)])
|
||||||
def __del__(self):
|
|
||||||
self._disconnect()
|
|
||||||
|
|
||||||
Common_MCU_errors = {
|
Common_MCU_errors = {
|
||||||
("Timer too close", "No next step", "Missed scheduling of next "): """
|
("Timer too close", "No next step", "Missed scheduling of next "): """
|
||||||
|
|
Loading…
Reference in New Issue