Skip to content

Commit 3e8235e

Browse files
authored
Merge pull request #40 from purepani/add_exit_before_rt
Add exit before rt
2 parents 8d1d24c + aeaef30 commit 3e8235e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adafruit_mlx90393.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
https://github.com/adafruit/Adafruit_CircuitPython_Register
2929
3030
"""
31+
3132
import struct
3233
import time
3334

@@ -36,8 +37,9 @@
3637

3738
try:
3839
from typing import Tuple
39-
from circuitpython_typing import ReadableBuffer
40+
4041
from busio import I2C
42+
from circuitpython_typing import ReadableBuffer
4143
except ImportError:
4244
pass
4345

@@ -443,6 +445,7 @@ def reset(self) -> None:
443445
"""
444446
Performs a software reset of the sensor.
445447
"""
448+
self._transceive(bytes([_CMD_EX]))
446449
if self._debug:
447450
print("Resetting sensor")
448451
time.sleep(2)

0 commit comments

Comments
 (0)