Chr157i4n/TMC2209_Raspberry_Pi

Destructor not beeing called

Chr157i4n opened this issue · 0 comments

Describe the bug
The destructor of the TMC class is not beeing called.
Therefore the StallGuard thread is still running and causing the following error

 Fatal Python error: _enter_buffered_busy: could not acquire lock for <_io.BufferedWriter name='<stdout>'> at interpreter shutdown, possibly due to daemon threads
Python runtime state: finalizing (tstate=0x5c3888)

Current thread 0xb6f41980 (most recent call first):
<no Python frame>
Aborted 

Expected behavior
that the destructor is beeing called when the class is beeing deleted ("del tmc")

Versions
Raspberry Pi CM4
Raspberry Pi OS 11 "Bullseye"
Version 0.1.7 of this library
FYSETC TMC2209 V3.0