Skip to content

Commit 3ff1b80

Browse files
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
2 parents 98b3d24 + 9b03f08 commit 3ff1b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/linux/maple_upload

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fi
4242
echo -n Waiting for ${dummy_port_fullpath} serial...
4343

4444
COUNTER=0
45-
while [ ! -c ${dummy_port_fullpath} ] && ((COUNTER++ < 40)); do
45+
while [ ! -r ${dummy_port_fullpath} ] && ((COUNTER++ < 40)); do
4646
sleep 0.1
4747
done
4848

0 commit comments

Comments
 (0)