Skip to content

Commit 29a2917

Browse files
authored
Do not issue the "off" command to Matrix (#126)
This regression was introduced in PR #121 where all devices issue the "off" command to themselves upon destruction. Using the "off" command is specifically avoided in `BuildHAT.shutdown()` with an exception built into the type identifier for the Matrix
1 parent 2ee39b9 commit 29a2917

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildhat/devices.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def __del__(self):
7070
Device._used[self.port] = False
7171
self._conn.callit = None
7272
self.deselect()
73-
self.off()
73+
if self._typeid != 64:
74+
self.off()
7475

7576
@property
7677
def _conn(self):

0 commit comments

Comments
 (0)