diff options
author | David Sidrane <david_s5@nscdg.com> | 2015-03-03 16:30:51 -1000 |
---|---|---|
committer | David Sidrane <david_s5@nscdg.com> | 2015-04-07 07:43:55 -1000 |
commit | 1a0b8a627c73afcdf8d1571b4d22ce121bb570ce (patch) | |
tree | 7116ff68a30ee7010094f26f84a1b7338b01547f /ROMFS/px4fmu_common/init.d/rcS | |
parent | a76ba6a38577365971a754a17683a61b71aa785f (diff) | |
download | px4-firmware-1a0b8a627c73afcdf8d1571b4d22ce121bb570ce.tar.gz px4-firmware-1a0b8a627c73afcdf8d1571b4d22ce121bb570ce.tar.bz2 px4-firmware-1a0b8a627c73afcdf8d1571b4d22ce121bb570ce.zip |
Hard Fault Logging - one issue remians reduse memory foot print
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 |