From a70d4734b7aad1870714cdb26ca108f449e5e67b Mon Sep 17 00:00:00 2001 From: f Date: Wed, 8 Jun 2022 10:29:10 -0300 Subject: [PATCH] =?UTF-8?q?aumentar=20el=20timeout=20en=20la=20conexi?= =?UTF-8?q?=C3=B3n=20serial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit si el arduino tarda en leer los datos podemos obtener una respuesta vacĂ­a --- raspberry/arduinos.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/raspberry/arduinos.py b/raspberry/arduinos.py index 10a88e5..711b5b9 100755 --- a/raspberry/arduinos.py +++ b/raspberry/arduinos.py @@ -10,7 +10,7 @@ ser = serial.Serial( parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS, - timeout=1 + timeout=2 ) ser.flush() @@ -28,7 +28,3 @@ while True: break quit() - - - -