Skip to content

Commit 8fe1b80

Browse files
Kaanoz-enCopilot
andauthored
Update lib/vl53l1x/examples/radar_screen.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b7eb5e9 commit 8fe1b80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/vl53l1x/examples/radar_screen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
brightness = int(15 * ratio)
4242

4343
# If the object is within the detection range, ensure minimum visibility
44-
if distance < MAX_DISTANCE_MM:
44+
if distance <= MAX_DISTANCE_MM:
4545
bar_width = max(1, bar_width)
4646
brightness = max(1, brightness)
4747

0 commit comments

Comments
 (0)