Skip to content

Commit d0e76a6

Browse files
committed
Fixed linting
1 parent 43cb321 commit d0e76a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_vl53l1x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def timing_budget(self, val):
250250
reg_vals = TB_LONG_DIST
251251
if reg_vals is None:
252252
raise RuntimeError("Unknown distance mode.")
253-
if val not in reg_vals.keys():
253+
if val not in reg_vals:
254254
raise ValueError("Invalid timing budget.")
255255
self._write_register(_RANGE_CONFIG__TIMEOUT_MACROP_A_HI, reg_vals[val][0])
256256
self._write_register(_RANGE_CONFIG__TIMEOUT_MACROP_B_HI, reg_vals[val][1])

0 commit comments

Comments
 (0)