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:
Roger Clark 2017-11-14 09:15:11 +11:00 committed by GitHub
commit 3ff1b8000c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ fi
echo -n Waiting for ${dummy_port_fullpath} serial...
COUNTER=0
while [ ! -c ${dummy_port_fullpath} ] && ((COUNTER++ < 40)); do
while [ ! -r ${dummy_port_fullpath} ] && ((COUNTER++ < 40)); do
sleep 0.1
done