diff --git a/libraries/AP_ADSB/AP_ADSB.cpp b/libraries/AP_ADSB/AP_ADSB.cpp index 4d3d89bb94..7a9881eebf 100644 --- a/libraries/AP_ADSB/AP_ADSB.cpp +++ b/libraries/AP_ADSB/AP_ADSB.cpp @@ -55,6 +55,7 @@ const AP_Param::GroupInfo AP_ADSB::var_info[] = { // @Description: Type of ADS-B hardware for ADSB-in and ADSB-out configuration and operation. If any type is selected then MAVLink based ADSB-in messages will always be enabled // @Values: 0:Disabled,1:uAvionix-MAVLink // @User: Standard + // @RebootRequired: True AP_GROUPINFO_FLAGS("TYPE", 0, AP_ADSB, _type[0], 0, AP_PARAM_FLAG_ENABLE), // index 1 is reserved - was BEHAVIOR @@ -211,27 +212,12 @@ void AP_ADSB::init(void) } } - -/* - * de-initialize and free up some memory - */ -void AP_ADSB::deinit(void) -{ - if (in_state.vehicle_list != nullptr) { - delete [] in_state.vehicle_list; - in_state.vehicle_list = nullptr; - } - for (uint8_t i=0; i 0) { @@ -240,10 +226,7 @@ bool AP_ADSB::check_startup() } } - if (all_backends_disabled || _init_failed) { - if (in_state.vehicle_list != nullptr) { - deinit(); - } + if (all_backends_disabled) { // nothing to do return false; } @@ -359,7 +342,7 @@ void AP_ADSB::update(void) } for (uint8_t i=0; iupdate(); } } diff --git a/libraries/AP_ADSB/AP_ADSB.h b/libraries/AP_ADSB/AP_ADSB.h index 7a502914b5..691bdeb84c 100644 --- a/libraries/AP_ADSB/AP_ADSB.h +++ b/libraries/AP_ADSB/AP_ADSB.h @@ -143,7 +143,6 @@ private: // initialize vehicle_list void init(); - void deinit(); // check to see if we are initialized (and possibly do initialization) bool check_startup();