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