ao-bringup: Delay before testing easymini for 0.25 seconds
authorKeith Packard <keithp@keithp.com>
Wed, 28 Oct 2020 21:32:16 +0000 (14:32 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 18 Nov 2020 05:40:21 +0000 (21:40 -0800)
EasyMini isn't quite ready to play when the USB is first detected as
the sensors haven't yet been initialized. Wait for 0.25 seconds to
give the board time to finish initializing.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-bringup/test-easymini

index ddcfcd5457d18b6ea703937687c0c59fbc9d18b8..c4479680120e4d722353bc1834a06535c3f657d7 100755 (executable)
@@ -21,6 +21,8 @@ while [ $found -eq 0 ]; do
                echo -e '\e[34m'Testing $product $serial $dev'\e[39m'
                echo ""
                
+               sleep 0.25
+
                ./test-igniters-nowait "$dev" drogue main
                echo ""
 
@@ -42,7 +44,6 @@ while [ $found -eq 0 ]; do
                    echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
                    exit 1
                fi
-
                echo ""
 
                echo -e '\e[32m'"$PRODUCT-v$VERSION" serial "$serial" is ready to ship'\e[39m'
@@ -57,6 +58,5 @@ while [ $found -eq 0 ]; do
     if [ $result -ne 2 ]; then
        exit $result
     fi
-    echo 'No device, sleeping...'
-    sleep 1
+    sleep 0.25
 done