Skip to content

Commit 5e31d3b

Browse files
committed
Changes to fix linting
1 parent 9032c5f commit 5e31d3b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

adafruit_tsl2591.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -250,18 +250,18 @@ def lux(self):
250250
and visible light channels.
251251
"""
252252
channel_0, channel_1 = self.raw_luminosity
253-
253+
254254
# Compute the atime in milliseconds
255255
atime = 100.0 * self._integration_time + 100.0
256-
256+
257257
# Set the maximum sensor counts based on the atime setting
258-
if 100 == atime:
259-
maxCounts = _TSL2591_MAX_COUNT_100MS
258+
if atime == 100:
259+
max_counts = _TSL2591_MAX_COUNT_100MS
260260
else:
261-
maxCounts = _TSL2591_MAX_COUNT
262-
261+
max_counts = _TSL2591_MAX_COUNT
262+
263263
# Handle overflow.
264-
if channel_0 >= maxCounts or channel_1 >= maxCounts:
264+
if channel_0 >= max_counts or channel_1 >= max_counts:
265265
raise RuntimeError('Overflow reading light channels!')
266266
# Calculate lux using same equation as Arduino library:
267267
# https://github.com/adafruit/Adafruit_TSL2591_Library/blob/master/Adafruit_TSL2591.cpp

0 commit comments

Comments
 (0)