Skip to content

Commit e00c490

Browse files
authored
Merge pull request #12 from adafruit/pylint-fix
Fixed linting
2 parents 43cb321 + d0e76a6 commit e00c490

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)