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
+1 -1
View File
@@ -1696,7 +1696,7 @@ MavlinkReceiver::handle_message_play_tune(mavlink_message_t *msg)
play_tune.target_component == 0)) {
if (*tune == 'M') {
int fd = px4_open(TONEALARM0_DEVICE_PATH, PX4_F_WRONLY);
int fd = px4_open(TONE_ALARM0_DEVICE_PATH, PX4_F_WRONLY);
if (fd >= 0) {
px4_write(fd, tune, strlen(tune) + 1);