Skip to content

Commit 8840196

Browse files
committed
Enable 'del' to function correctly
1 parent abed986 commit 8840196

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

buildhat/serinterface.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ def motorloop(self, q):
297297
break
298298
else:
299299
func(*data)
300+
func = None # Necessary for 'del' to function correctly on motor object
301+
data = None
300302

301303
def callbackloop(self, q):
302304
"""Event handling for callbacks

0 commit comments

Comments
 (0)