diff --git a/features/FEATURE_BLE/ble/generic/SecurityDb.h b/features/FEATURE_BLE/ble/generic/SecurityDb.h index 8fa9e96d18..a5577f1929 100644 --- a/features/FEATURE_BLE/ble/generic/SecurityDb.h +++ b/features/FEATURE_BLE/ble/generic/SecurityDb.h @@ -603,7 +603,7 @@ public: sizeof(BLEProtocol::AddressBytes_t) ); - if (flags->peer_address_is_public) { + if (identity->identity_address_is_public) { whitelist->addresses[whitelist->size].type = BLEProtocol::AddressType::PUBLIC; } else { whitelist->addresses[whitelist->size].type = BLEProtocol::AddressType::RANDOM_STATIC;