Skip to content

Commit ee74252

Browse files
committed
Update adafruit_vl53l1x.py
Change single to double quotes
1 parent c3e206b commit ee74252

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
@@ -301,7 +301,7 @@ def distance_mode(self, mode):
301301
def roi_xy(self):
302302
"""Returns the x and y coordinates of the sensor's region of interest"""
303303
temp = self._read_register(_ROI_CONFIG__USER_ROI_REQUESTED_GLOBAL_XY_SIZE)
304-
x = (int.from_bytes(temp, 'little') & 0x0F) + 1
304+
x = (int.from_bytes(temp) & 0x0F) + 1
305305
y = ((int.from_bytes(temp, 'little') & 0xF0) >> 4) + 1
306306

307307
return x, y

0 commit comments

Comments
 (0)