We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e56a6f commit b80bd5bCopy full SHA for b80bd5b
adafruit_us100.py
@@ -51,7 +51,7 @@ def distance(self) -> Optional[float]:
51
for the sensor to handle. In my experience, the sensor can not detect
52
objects over 460 cm away.
53
:return: Distance in centimeters.
54
- :rtype: float
+ :rtype: float or None
55
"""
56
for _ in range(2): # Attempt to read twice.
57
self._uart.write(bytes([0x55]))
0 commit comments