Skip to content

Commit d907d45

Browse files
authored
RuntimeError not needed
RuntimeError Exception prohibits code to proceed. Tested with (apds)GY-9960 board.
1 parent cd01e25 commit d907d45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_apds9960/apds9960.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ def __init__(
183183

184184
self.i2c_device = I2CDevice(i2c, _APDS9960_I2C_ADDRESS)
185185

186-
if self._read8(_APDS9960_ID) != _DEVICE_ID:
187-
raise RuntimeError()
186+
#if self._read8(_APDS9960_ID) != _DEVICE_ID:
187+
# raise RuntimeError()
188188

189189
if reset:
190190
# Disable prox, gesture, and color engines

0 commit comments

Comments
 (0)