AP_ADSB: don't disable ADSB permanently on init fail

we may be low on memory on only this boot
This commit is contained in:
Andrew Tridgell 2015-11-23 19:47:30 +11:00
parent eaad72c192
commit f9e865ef5e

View File

@ -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;