Skip to content

Commit 8150fbd

Browse files
committed
Revert "autoformat with black"
This reverts commit aee98b4.
1 parent aee98b4 commit 8150fbd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

adafruit_vl53l0x.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def do_range_measurement(self):
553553
):
554554
raise RuntimeError("Timeout waiting for VL53L0X!")
555555

556-
def read_range(self, max_ready_wait_us=None):
556+
def read_range(self, max_ready_wait_us = None):
557557
"""Return a range reading in millimeters.
558558
559559
If max_ready_wait_us is specified, and the sensor data is not ready
@@ -573,10 +573,7 @@ def read_range(self, max_ready_wait_us=None):
573573
and (time.monotonic() - start) >= self.io_timeout_s
574574
):
575575
raise RuntimeError("Timeout waiting for VL53L0X!")
576-
if (
577-
max_ready_wait_us is not None
578-
and (time.monotonic() - start) * 1_000_000 >= max_ready_wait_us
579-
):
576+
if max_ready_wait_us is not None and (time.monotonic() - start)*1_000_000 >= max_ready_wait_us:
580577
return -1
581578
# assumptions: Linearity Corrective Gain is 1000 (default)
582579
# fractional ranging is not enabled

0 commit comments

Comments
 (0)