AP_Notify: fix if statement

This commit is contained in:
mirkix 2015-01-12 20:48:50 +00:00 committed by Andrew Tridgell
parent fa950a735e
commit 62a05a0438

View File

@ -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;