diff options
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/rcS')
-rw-r--r-- | ROMFS/px4fmu_common/init.d/rcS | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 266af42e6..706faa42b 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -29,8 +29,18 @@ if mount -t vfat /dev/mmcsd0 /fs/microsd then set LOG_FILE /fs/microsd/bootlog.txt echo "[i] microSD mounted: /fs/microsd" - # Start playing the startup tune - tone_alarm start + if hardfault_log check + then + tone_alarm error + if hardfault_log commit + then + hardfault_log reset + tone_alarm stop + fi + else + # Start playing the startup tune + tone_alarm start + fi else set LOG_FILE /dev/null fi |