diff --git a/raspberry/arduinos.py b/raspberry/arduinos.py index 711b5b9..d234a50 100755 --- a/raspberry/arduinos.py +++ b/raspberry/arduinos.py @@ -21,10 +21,11 @@ ser.write(serial.to_bytes(com)) ser.flush() while True: if ser.in_waiting > 0: - line = ser.readline().decode('utf-8', errors='replace').rstrip() - #time.sleep(0.1) - print(line) - ser.flush() - break - + line = ser.readline().decode('utf-8', errors='replace').rstrip() + print(line) + ser.flush() + break + + time.sleep(1) + quit()