mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 01:13:33 +08:00
ToneAlarm class refactoring to implement an interface for hardware specific methods and a single ToneAlarm class.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user