We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e99fbf9 commit 1319c01Copy full SHA for 1319c01
1 file changed
bc_gateway/gateway.py
@@ -70,6 +70,8 @@ def _run(self):
70
fcntl.flock(self.ser.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
71
logging.debug('Exclusive lock on file descriptor: %d' % self.ser.fileno())
72
73
+ self.ser.reset_input_buffer()
74
+ self.ser.reset_output_buffer()
75
self.ser.write(b'\n')
76
77
self.write("/info/get", None)
0 commit comments