Skip to content

Commit

Permalink
remove mg24 ifndef
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Jun 23, 2022
1 parent e284e43 commit 937c1aa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/platform/EFR32/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -706,14 +706,10 @@ CHIP_ERROR BLEManagerImpl::StartAdvertising(void)
ChipLogDetail(DeviceLayer, "Start BLE advertissement");
}

#ifndef EFR32MG24
// set_random_address causes issues in BLE driver later on with MG24 family.
// To be remove when updateing to GSDK4.0
const uint8_t kResolvableRandomAddrType = 2; // Private resolvable random address type
bd_addr unusedBdAddr; // We can ignore this field when setting random address.
sl_bt_advertiser_set_random_address(advertising_set_handle, kResolvableRandomAddrType, unusedBdAddr, &unusedBdAddr);
(void) unusedBdAddr;
#endif

err = ConfigureAdvertisingData();
SuccessOrExit(err);
Expand Down

0 comments on commit 937c1aa

Please sign in to comment.