Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions adafruit_vl6180x.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ def start_range_continuous(self, period: int = 100) -> None:

:param int period: Time delay between measurements, in milliseconds; the value you
will be floored to the nearest 10 milliseconds (setting to 157 ms sets it to 150
ms). Range is 10 - 2550 ms.
ms). Range is 20 - 2550 ms.
"""
# Set range between measurements
if not 10 <= period <= 2550:
if not 20 <= period <= 2550:
raise ValueError(
"Delay must be in 10 millisecond increments between 10 and 2550 milliseconds"
"Delay must be in 10 millisecond increments between 20 and 2550 milliseconds"
)

period_reg = (period // 10) - 1
Expand Down
Loading