Skip to content

Commit

Permalink
AP_OpenDroneID: ensure Persistent memory is not read continuously
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Sep 14, 2023
1 parent 1d207be commit 64e527f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_OpenDroneID/AP_OpenDroneID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void AP_OpenDroneID::set_basic_id() {
if (pkt_basic_id.id_type != MAV_ODID_ID_TYPE_NONE) {
return;
}
if (id_len == 0) {
if ((id_len == 0) && (_options & LockUASIDOnFirstBasicIDRx)) {
load_UAS_ID_from_persistent_memory();
}
if (id_len > 0) {
Expand Down

0 comments on commit 64e527f

Please sign in to comment.