Browse Source

AP_Notify: fixed shadowed variable warning

master
Andrew Tridgell 7 years ago
parent
commit
8b337bfc4c
  1. 4
      libraries/AP_Notify/ToneAlarm_Linux.cpp

4
libraries/AP_Notify/ToneAlarm_Linux.cpp

@ -37,8 +37,8 @@ extern const AP_HAL::HAL& hal; @@ -37,8 +37,8 @@ extern const AP_HAL::HAL& hal;
bool ToneAlarm_Linux::init()
{
// open the tone alarm device
bool _initialized = hal.util->toneAlarm_init();
if (!_initialized) {
bool initialized = hal.util->toneAlarm_init();
if (!initialized) {
hal.console->printf("AP_Notify: Failed to initialise ToneAlarm");
return false;
}

Loading…
Cancel
Save