Skip to content

Commit 739a493

Browse files
committed
flush uart before read
1 parent 68d68e2 commit 739a493

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_bno08x_rvc.py

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def heading(self) -> Tuple[float, float, float, float, float, float]:
121121
122122
"""
123123
# try to read initial packet start byte
124+
self._uart.reset_input_buffer()
124125
data = None
125126
start_time = time.monotonic()
126127
while time.monotonic() - start_time < self._read_timeout:

0 commit comments

Comments
 (0)