Skip to content

Commit 9bcf507

Browse files
committed
tupes
1 parent 927e91a commit 9bcf507

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

adafruit_ltr390.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -307,13 +307,13 @@ def _reset(self):
307307
# The LTR390 software reset is ill behaved and can leave I2C bus in bad state.
308308
# Instead, just manually set register reset values per datasheet.
309309
with self.i2c_device as i2c:
310-
i2c.write(bytes([_CTRL, 0x00]))
311-
i2c.write(bytes([_MEAS_RATE, 0x22]))
312-
i2c.write(bytes([_GAIN, 0x01]))
313-
i2c.write(bytes([_INT_CFG, 0x10]))
314-
i2c.write(bytes([_INT_PST, 0x00]))
315-
i2c.write(bytes([_THRESH_UP, 0xFF, 0xFF, 0x0F]))
316-
i2c.write(bytes([_THRESH_LOW, 0x00, 0x00, 0x00]))
310+
i2c.write(bytes((_CTRL, 0x00)))
311+
i2c.write(bytes((_MEAS_RATE, 0x22)))
312+
i2c.write(bytes((_GAIN, 0x01)))
313+
i2c.write(bytes((_INT_CFG, 0x10)))
314+
i2c.write(bytes((_INT_PST, 0x00)))
315+
i2c.write(bytes((_THRESH_UP, 0xFF, 0xFF, 0x0F)))
316+
i2c.write(bytes((_THRESH_LOW, 0x00, 0x00, 0x00)))
317317

318318
@property
319319
def _mode(self):

0 commit comments

Comments
 (0)