mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
HAL_PX4: show a message if we fail to upgrade PX4IO firmware
This commit is contained in:
parent
0f239ae92c
commit
160e5fa311
@ -49,9 +49,14 @@ then
|
||||
echo "No new px4io firmware"
|
||||
else
|
||||
echo "Loading /fs/microsd/px4io.bin"
|
||||
px4io update /fs/microsd/px4io.bin > /fs/microsd/APM/px4io_update.log
|
||||
if px4io update /fs/microsd/px4io.bin > /fs/microsd/APM/px4io_update.log
|
||||
then
|
||||
cp /fs/microsd/px4io.bin /fs/microsd/px4io.bin.loaded
|
||||
echo "Loaded /fs/microsd/px4io.bin OK" >> /fs/microsd/APM/px4io_update.log
|
||||
else
|
||||
echo "Failed loading /fs/microsd/px4io.bin" >> /fs/microsd/APM/px4io_update.log
|
||||
echo "Failed to upgrade PX4IO firmware - check PX4IO is in bootloader mode"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user