Skip to content

Commit

Permalink
remove mg24 ifndef (#19897)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs authored and pull[bot] committed Aug 9, 2022
1 parent e396e4e commit 1479877
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 1479877

Please sign in to comment.