mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
AP_Notify: fixed shadowed variable warning
This commit is contained in:
parent
a9c570702c
commit
8b337bfc4c
@ -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…
Reference in New Issue
Block a user