diff --git a/mk/PX4/ROMFS/init.d/rc.APM b/mk/PX4/ROMFS/init.d/rc.APM old mode 100644 new mode 100755 index 1b333480d9..a8dd560436 --- a/mk/PX4/ROMFS/init.d/rc.APM +++ b/mk/PX4/ROMFS/init.d/rc.APM @@ -222,13 +222,17 @@ fi if [ $BOARD == FMUv1 ] then echo "Starting FMUv1 sensors" - if hmc5883 -C -T start + if hmc5883 -C -T -X start then - echo "hmc5883 started OK" + echo "Have external hmc5883" else - echo "hmc5883 start failed" - echo "hmc5883 start failed" >> $logfile - sh /etc/init.d/rc.error + echo "No external hmc5883" + fi + if hmc5883 -C -T -I start + then + echo "Have internal hmc5883" + else + echo "No internal hmc5883" fi if mpu6000 start then