ToneAlarm class refactoring to implement an interface for hardware specific methods and a single ToneAlarm class.

This commit is contained in:
mcsauder
2019-01-28 18:58:04 -08:00
committed by David Sidrane
parent 0f386ee52a
commit dc5f18bdcd
42 changed files with 1258 additions and 1465 deletions
+2 -2
View File
@@ -124,10 +124,10 @@ int test_tone(int argc, char *argv[])
int fd, result;
unsigned long tone;
fd = px4_open(TONEALARM0_DEVICE_PATH, O_WRONLY);
fd = px4_open(TONE_ALARM0_DEVICE_PATH, O_WRONLY);
if (fd < 0) {
printf("failed opening " TONEALARM0_DEVICE_PATH "\n");
printf("failed opening " TONE_ALARM0_DEVICE_PATH "\n");
goto out;
}