We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22fe497 commit 584a24fCopy full SHA for 584a24f
adafruit_tsl2591.py
@@ -254,8 +254,8 @@ def lux(self):
254
# Compute the atime in milliseconds
255
atime = 100.0 * self._integration_time + 100.0
256
257
- # Set the maximum sensor counts based on the atime setting
258
- if atime == 100:
+ # Set the maximum sensor counts based on the integration time (atime) setting
+ if self._integration_time == INTEGRATIONTIME_100MS:
259
max_counts = _TSL2591_MAX_COUNT_100MS
260
else:
261
max_counts = _TSL2591_MAX_COUNT
0 commit comments