Merge pull request #377 from albertoa/patch-1
Solve race condition, on Linux, where the Arduino IDE has the serial port (monitor) open when upload is selected
This commit is contained in:
commit
3ff1b8000c
|
@ -42,7 +42,7 @@ fi
|
||||||
echo -n Waiting for ${dummy_port_fullpath} serial...
|
echo -n Waiting for ${dummy_port_fullpath} serial...
|
||||||
|
|
||||||
COUNTER=0
|
COUNTER=0
|
||||||
while [ ! -c ${dummy_port_fullpath} ] && ((COUNTER++ < 40)); do
|
while [ ! -r ${dummy_port_fullpath} ] && ((COUNTER++ < 40)); do
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue