From f88bb5638bc390eefa9045737900de475865188c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 8 Aug 2013 11:09:10 +1000 Subject: [PATCH] PX4: changes to startup after stacksize fix we can redirect to FAT fs again, and remove the sleep lines --- mk/PX4/ROMFS/init.d/rc.APM | 6 +----- mk/PX4/ROMFS/init.d/rcS | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/mk/PX4/ROMFS/init.d/rc.APM b/mk/PX4/ROMFS/init.d/rc.APM index 1e8940cef9..ae78670d8d 100644 --- a/mk/PX4/ROMFS/init.d/rc.APM +++ b/mk/PX4/ROMFS/init.d/rc.APM @@ -86,12 +86,11 @@ then else echo Loading /etc/px4io/px4io.bin tone_alarm MBABGP - if px4io update /etc/px4io/px4io.bin + if px4io update /etc/px4io/px4io.bin > /fs/microsd/APM/px4io_update.log then cp /etc/px4io/px4io.bin /fs/microsd/px4io.loaded echo Loaded /etc/px4io/px4io.bin OK >> /fs/microsd/APM/px4io_update.log tone_alarm MSPAA - sleep 1 else echo Failed loading /etc/px4io/px4io.bin >> /fs/microsd/APM/px4io_update.log echo "check Safety Button" >> /fs/microsd/APM/px4io_update.log @@ -140,9 +139,6 @@ else fi fi -# why is this sleep needed? -sleep 1 - # optional ETS airspeed sensor if ets_airspeed start then diff --git a/mk/PX4/ROMFS/init.d/rcS b/mk/PX4/ROMFS/init.d/rcS index 0dd4cc1c7f..81d01532f7 100755 --- a/mk/PX4/ROMFS/init.d/rcS +++ b/mk/PX4/ROMFS/init.d/rcS @@ -82,5 +82,4 @@ then echo Running rc.APM # if APM startup is successful then nsh will exit sh /etc/init.d/rc.APM - sleep 1 fi