From b91755318a61d1a2a6c59ddee87fd1182d20fc22 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 1 Jun 2013 12:41:28 +1000 Subject: [PATCH] HAL_PX4: play some tones on PX4IO firmware load gives some chance of knowing if it worked --- mk/PX4/ROMFS/init.d/rc.APM | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mk/PX4/ROMFS/init.d/rc.APM b/mk/PX4/ROMFS/init.d/rc.APM index 4b6e72cbe9..6f380e4b0f 100644 --- a/mk/PX4/ROMFS/init.d/rc.APM +++ b/mk/PX4/ROMFS/init.d/rc.APM @@ -52,13 +52,16 @@ then echo "No new px4io firmware" else echo "Loading /fs/microsd/px4io.bin" + tone_alarm MBABGP 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 + tone_alarm MSPAA 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" + tone_alarm MNGGG fi fi fi