AP_Notify: fixed shadowed variable warning

This commit is contained in:
Andrew Tridgell 2018-07-07 10:25:51 +10:00
parent a9c570702c
commit 8b337bfc4c
1 changed files with 2 additions and 2 deletions

View File

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