AP_Notify: cleanup use of bool from toneAlarm_init()
This commit is contained in:
parent
329c1f5190
commit
485abbac3a
@ -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;
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user