Skip to content

Commit b89d99a

Browse files
committed
Use dd command instead of test command to wait the Serial device
1 parent 920b57a commit b89d99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/macosx/maple_upload

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ${DFU_UTIL} -d ${usbID} -a ${altID} -D ${binfile} -R ${dfuse_addr} -R
5555
echo -n Waiting for ${dummy_port_fullpath} serial...
5656

5757
COUNTER=0
58-
while [ ! -c ${dummy_port_fullpath} ] && ((COUNTER++ < 40)); do
58+
while ! dd if=${dummy_port_fullpath} of=/dev/null count=0 > /dev/null 2>&1 && ((COUNTER++ < 40)); do
5959
sleep 0.1
6060
done
6161

0 commit comments

Comments
 (0)