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>
echo -e '\e[34m'Testing $product $serial $dev'\e[39m'
echo ""
+ sleep 0.25
+
./test-igniters-nowait "$dev" drogue main
echo ""
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'
if [ $result -ne 2 ]; then
exit $result
fi
- echo 'No device, sleeping...'
- sleep 1
+ sleep 0.25
done