aumentar el timeout en la conexión serial
si el arduino tarda en leer los datos podemos obtener una respuesta vacía
This commit is contained in:
parent
e4bf856b5f
commit
a70d4734b7
1 changed files with 1 additions and 5 deletions
|
@ -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()
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue