Browse Source

AP_ADSB: don't disable ADSB permanently on init fail

we may be low on memory on only this boot
master
Andrew Tridgell 9 years ago
parent
commit
f9e865ef5e
  1. 2
      libraries/AP_ADSB/AP_ADSB.cpp

2
libraries/AP_ADSB/AP_ADSB.cpp

@ -56,7 +56,7 @@ void AP_ADSB::init(void) @@ -56,7 +56,7 @@ void AP_ADSB::init(void)
if (_vehicle_list == NULL) {
// dynamic RAM allocation of _vehicle_list[] failed, disable gracefully
hal.console->printf("Unable to initialize ADS-B vehicle list\n");
_enabled.set_and_save(0);
_enabled.set(0);
}
}
_vehicle_count = 0;

Loading…
Cancel
Save