diff --git a/libraries/AP_Notify/ToneAlarm_Linux.cpp b/libraries/AP_Notify/ToneAlarm_Linux.cpp index 7d3e298673..68adf99620 100644 --- a/libraries/AP_Notify/ToneAlarm_Linux.cpp +++ b/libraries/AP_Notify/ToneAlarm_Linux.cpp @@ -36,7 +36,7 @@ extern const AP_HAL::HAL& hal; bool ToneAlarm_Linux::init() { // open the tone alarm device - err = hal.util->toneAlarm_init(); + err = !hal.util->toneAlarm_init(); if (err) { hal.console->printf("AP_Notify: Failed to initialise ToneAlarm"); return false;