diff options
author | Jean Cyr <jcyr@dillobits.com> | 2013-08-30 20:12:35 -0400 |
---|---|---|
committer | Jean Cyr <jcyr@dillobits.com> | 2013-08-30 20:12:35 -0400 |
commit | efca6f2cb1848523969c7f29abba7389e48affbc (patch) | |
tree | 1e8f75de96fd3a61452d43a270d0c1683ba9f9c1 /src/systemcmds/preflight_check/preflight_check.c | |
parent | 2b62497fb5dd83db17b1d2851f686049841faa7e (diff) | |
download | px4-firmware-efca6f2cb1848523969c7f29abba7389e48affbc.tar.gz px4-firmware-efca6f2cb1848523969c7f29abba7389e48affbc.tar.bz2 px4-firmware-efca6f2cb1848523969c7f29abba7389e48affbc.zip |
Remove unused tones and save about 6K flash space
- Comment out unused tones
- Create symbolic tone numbers rather than hardcoded
Diffstat (limited to 'src/systemcmds/preflight_check/preflight_check.c')
-rw-r--r-- | src/systemcmds/preflight_check/preflight_check.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/systemcmds/preflight_check/preflight_check.c b/src/systemcmds/preflight_check/preflight_check.c index 4c19dcffb..a323261cc 100644 --- a/src/systemcmds/preflight_check/preflight_check.c +++ b/src/systemcmds/preflight_check/preflight_check.c @@ -176,15 +176,15 @@ system_eval: led_toggle(leds, LED_AMBER); if (i % 10 == 0) { - ioctl(buzzer, TONE_SET_ALARM, 4); + ioctl(buzzer, TONE_SET_ALARM, TONE_NOTIFY_NEUTRAL_TUNE); } else if (i % 5 == 0) { - ioctl(buzzer, TONE_SET_ALARM, 2); + ioctl(buzzer, TONE_SET_ALARM, TONE_ERROR_TUNE); } usleep(100000); } /* stop alarm */ - ioctl(buzzer, TONE_SET_ALARM, 0); + ioctl(buzzer, TONE_SET_ALARM, TONE_STOP_TUNE); /* switch on leds */ led_on(leds, LED_BLUE); |