From: Keith Packard Date: Wed, 28 Oct 2020 21:32:16 +0000 (-0700) Subject: ao-bringup: Delay before testing easymini for 0.25 seconds X-Git-Tag: 1.9.7~1^2~35^2~6 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;ds=sidebyside;h=d1a2932e080041cfe107e00e7b23213026d1fb81;p=fw%2Faltos ao-bringup: Delay before testing easymini for 0.25 seconds 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 --- diff --git a/ao-bringup/test-easymini b/ao-bringup/test-easymini index ddcfcd54..c4479680 100755 --- a/ao-bringup/test-easymini +++ b/ao-bringup/test-easymini @@ -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