aboutsummaryrefslogtreecommitdiff
path: root/src/systemcmds/tests/test_hrt.c
diff options
context:
space:
mode:
authorJean Cyr <jcyr@dillobits.com>2013-08-30 20:12:35 -0400
committerJean Cyr <jcyr@dillobits.com>2013-08-30 20:12:35 -0400
commitefca6f2cb1848523969c7f29abba7389e48affbc (patch)
tree1e8f75de96fd3a61452d43a270d0c1683ba9f9c1 /src/systemcmds/tests/test_hrt.c
parent2b62497fb5dd83db17b1d2851f686049841faa7e (diff)
downloadpx4-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/tests/test_hrt.c')
-rw-r--r--src/systemcmds/tests/test_hrt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemcmds/tests/test_hrt.c b/src/systemcmds/tests/test_hrt.c
index f6e540401..ba6b86adb 100644
--- a/src/systemcmds/tests/test_hrt.c
+++ b/src/systemcmds/tests/test_hrt.c
@@ -137,7 +137,7 @@ int test_tone(int argc, char *argv[])
tone = atoi(argv[1]);
if (tone == 0) {
- result = ioctl(fd, TONE_SET_ALARM, 0);
+ result = ioctl(fd, TONE_SET_ALARM, TONE_STOP_TUNE);
if (result < 0) {
printf("failed clearing alarms\n");
@@ -148,7 +148,7 @@ int test_tone(int argc, char *argv[])
}
} else {
- result = ioctl(fd, TONE_SET_ALARM, 0);
+ result = ioctl(fd, TONE_SET_ALARM, TONE_STOP_TUNE);
if (result < 0) {
printf("failed clearing alarms\n");