diff --git a/SARA/sara.py b/SARA/sara.py index 660e339..05c4778 100755 --- a/SARA/sara.py +++ b/SARA/sara.py @@ -46,6 +46,9 @@ try: timeout = timeout ) + # Flush any leftover data from previous commands or modem boot URCs + ser.reset_input_buffer() + ser.write((command + '\r').encode('utf-8')) #ser.write(b'ATI\r') #General Information