mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Close serial port after verification
This commit is contained in:
@ -73,7 +73,8 @@ def WaitForNewSerialPort(env, before):
|
||||
break
|
||||
|
||||
try:
|
||||
Serial(new_port)
|
||||
s = Serial(new_port)
|
||||
s.close()
|
||||
except SerialException:
|
||||
sleep(1)
|
||||
|
||||
|
Reference in New Issue
Block a user