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:
Jean Cyr
2013-08-30 20:12:35 -04:00
parent 2b62497fb5
commit efca6f2cb1
5 changed files with 194 additions and 173 deletions
+2 -2
View File
@@ -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");