Skip to content

Commit d6ef8c8

Browse files
authored
Merge pull request #13 from okennedy/patch-1
Reset input buffer on init
2 parents fa93ec7 + 1657705 commit d6ef8c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_tfmini.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class TFmini:
4949
def __init__(self, uart, *, timeout=1):
5050
self._uart = uart
5151
self._uart.baudrate = 115200
52+
self._uart.reset_input_buffer()
5253
self.timeout = timeout
5354
self._strength = None
5455
self._mode = None

0 commit comments

Comments
 (0)