@@ -141,7 +141,7 @@ def range_from_history(self) -> Optional[int]:
141
141
142
142
@property
143
143
def ranges_from_history (self ) -> Optional [List [int ]]:
144
- """ Read the last 16 range measurements from history """
144
+ """Read the last 16 range measurements from history"""
145
145
146
146
if not self .range_history_enabled :
147
147
return None
@@ -153,7 +153,7 @@ def ranges_from_history(self) -> Optional[List[int]]:
153
153
154
154
@property
155
155
def range_history_enabled (self ) -> bool :
156
- """ Checks if history buffer stores range data """
156
+ """Checks if history buffer stores range data"""
157
157
158
158
history_ctrl : int = self ._read_8 (_VL6180X_REG_SYSTEM_HISTORY_CTRL )
159
159
@@ -192,7 +192,7 @@ def stop_range_continuous(self) -> None:
192
192
193
193
@property
194
194
def continuous_mode_enabled (self ) -> bool :
195
- """ Checks if continuous mode is enabled """
195
+ """Checks if continuous mode is enabled"""
196
196
return self ._read_8 (_VL6180X_REG_SYSRANGE_START ) > 1 & 0x1
197
197
198
198
@property
@@ -208,14 +208,14 @@ def offset(self, offset: int) -> None:
208
208
self ._offset = offset
209
209
210
210
def _read_range_single (self ) -> int :
211
- """ Read the range when in single-shot mode"""
211
+ """Read the range when in single-shot mode"""
212
212
while not self ._read_8 (_VL6180X_REG_RESULT_RANGE_STATUS ) & 0x01 :
213
213
pass
214
214
self ._write_8 (_VL6180X_REG_SYSRANGE_START , 0x01 )
215
215
return self ._read_range_continuous ()
216
216
217
217
def _read_range_continuous (self ) -> int :
218
- """ Read the range when in continuous mode"""
218
+ """Read the range when in continuous mode"""
219
219
220
220
# Poll until bit 2 is set
221
221
while not self ._read_8 (_VL6180X_REG_RESULT_INTERRUPT_STATUS_GPIO ) & 0x04 :
0 commit comments