mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 06:20:35 +08:00
Remove unused tones and save about 6K flash space
- Comment out unused tones - Create symbolic tone numbers rather than hardcoded
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user