Skip to content

Commit 983f50c

Browse files
committed
removed reset() and MODE_IDLE from constructor
1 parent f77d8a1 commit 983f50c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

adafruit_ens160.py

-3
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,8 @@ class ENS160:
106106
def __init__(self, i2c_bus: I2C, address: int = ENS160_I2CADDR_DEFAULT) -> None:
107107
self.i2c_device = i2c_device.I2CDevice(i2c_bus, address)
108108

109-
self.reset()
110-
111109
if self.part_id != 0x160:
112110
raise RuntimeError("Unable to find ENS160, check your wiring")
113-
self.mode = MODE_IDLE
114111
self.clear_command()
115112
self.mode = MODE_STANDARD
116113
self._buf = bytearray(8)

0 commit comments

Comments
 (0)