fix whitelist generation (set correct address type)

pull/8005/head
paul-szczepanek-arm 2018-09-05 16:46:01 +01:00
parent 06106297a4
commit a2c9781682
1 changed files with 1 additions and 1 deletions

View File

@ -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;