Skip to content

Commit 9563c7c

Browse files
committed
fix init
1 parent fc52aaf commit 9563c7c

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
@@ -80,9 +80,9 @@ def __init__(self, i2c, address=41):
8080
model_id, module_type, mask_rev = self.model_info
8181
if model_id != 0xEA or module_type != 0xCC or mask_rev != 0x10:
8282
raise RuntimeError("Wrong sensor ID or type!")
83+
self._sensor_init()
8384
self._timing_budget = None
8485
self.timing_budget = 50
85-
self._sensor_init()
8686

8787
def _sensor_init(self):
8888
# pylint: disable=line-too-long

0 commit comments

Comments
 (0)