Skip to content

Commit 852d314

Browse files
author
Chris Bailey
committed
Fix bug in reset that wasn't setting status properly
Removed setting the `_status_last` to the return value as the return result isn't just the status field. The `_transceive` function is actually setting the `_status_last` as part of the function so there is no need to do anything additional in reset
1 parent d370d3e commit 852d314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_mlx90393.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def reset(self):
386386
if self._debug:
387387
print("Resetting sensor")
388388
time.sleep(2)
389-
self._status_last = self._transceive(bytes([_CMD_RT]))
389+
self._transceive(bytes([_CMD_RT]))
390390
# burn a read post reset
391391
try:
392392
self.magnetic

0 commit comments

Comments
 (0)