Skip to content

Commit d9fb336

Browse files
committed
fix(apds9960): fix 'dividing by zero' comment.
1 parent 9fd54ee commit d9fb336

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/apds9960/examples/light_theremin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
# Clamp the light reading to the expected range to avoid out-of-bounds errors
5959
clamped_light = max(MIN_LIGHT, min(light_level, MAX_LIGHT))
6060

61-
# Avoid diving by zero if MAX_LIGHT is not greater than MIN_LIGHT
61+
# Avoid dividing by zero if MAX_LIGHT is not greater than MIN_LIGHT
6262
range_light = MAX_LIGHT - MIN_LIGHT
6363
if range_light <= 0:
6464
range_light = 1

0 commit comments

Comments
 (0)