AP_OpenDroneID: only load from persistent memory in init()

we do not want to do this from update() as it is an expensive call
This commit is contained in:
Andrew Tridgell 2023-10-13 10:28:19 +11:00 committed by Randy Mackay
parent 6f80bc33b5
commit f9aa81b78e
1 changed files with 0 additions and 3 deletions

View File

@ -131,9 +131,6 @@ void AP_OpenDroneID::set_basic_id() {
if (pkt_basic_id.id_type != MAV_ODID_ID_TYPE_NONE) {
return;
}
if ((id_len == 0) && (_options & LockUASIDOnFirstBasicIDRx)) {
load_UAS_ID_from_persistent_memory();
}
if (id_len > 0) {
// prepare basic id pkt
uint8_t val = gcs().sysid_this_mav();