AP_Notify: cleanup use of bool from toneAlarm_init()

This commit is contained in:
bugobliterator 2014-11-15 16:52:33 +11:00 committed by Andrew Tridgell
parent 329c1f5190
commit 485abbac3a
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ bool ToneAlarm_Linux::init()
{
// open the tone alarm device
err = hal.util->toneAlarm_init();
if (err == -1) {
if (err) {
hal.console->printf("AP_Notify: Failed to initialise ToneAlarm");
return false;
}

View File

@ -36,7 +36,7 @@ private:
/// play_tune - play one of the pre-defined tunes
bool play_tune(uint8_t tune_number);
int err;
bool err;
/// tonealarm_type - bitmask of states we track
struct tonealarm_type {