Skip to content

Commit aeaef30

Browse files
committed
Moves exit command before sleep
1 parent 3580b01 commit aeaef30

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_mlx90393.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,11 +445,10 @@ def reset(self) -> None:
445445
"""
446446
Performs a software reset of the sensor.
447447
"""
448+
self._transceive(bytes([_CMD_EX]))
448449
if self._debug:
449450
print("Resetting sensor")
450451
time.sleep(2)
451-
self._transceive(bytes([_CMD_EX]))
452-
time.sleep(0.001)
453452
self._transceive(bytes([_CMD_RT]))
454453
# burn a read post reset
455454
try:

0 commit comments

Comments
 (0)