Skip to content

Commit

Permalink
AP_OpenDroneID: only load from persistent memory in init()
Browse files Browse the repository at this point in the history
we do not want to do this from update() as it is an expensive call
  • Loading branch information
tridge committed Oct 13, 2023
1 parent 181505a commit fcd4152
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libraries/AP_OpenDroneID/AP_OpenDroneID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,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();
Expand Down

0 comments on commit fcd4152

Please sign in to comment.