Skip to content

Commit 0a48ee6

Browse files
Fixed type of timeout parameter to _wait_for_data
1 parent 9296d63 commit 0a48ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_as7341.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def channel_nir(self) -> int:
413413
self._configure_f5_f8()
414414
return self._channel_5_data
415415

416-
def _wait_for_data(self, timeout: Optional[float] = 1.0) -> None:
416+
def _wait_for_data(self, timeout: float = 1.0) -> None:
417417
"""Wait for sensor data to be ready"""
418418
start = monotonic()
419419
while not self._data_ready_bit:

0 commit comments

Comments
 (0)