Skip to content

Commit

Permalink
fixed custom advertisement mode for nrf52
Browse files Browse the repository at this point in the history
  • Loading branch information
dakhnod committed Oct 6, 2024
1 parent cf0a7fc commit cdfe931
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ble/sensor_ble.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,11 @@ void custom_data_advertisement_stop(){
// APP_ERROR_CHECK(err_code);

// restore real address
err_code = sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_NONE, &ble_address);
#ifdef S130
APP_ERROR_CHECK(sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_NONE, &ble_address));
#else
APP_ERROR_CHECK(sd_ble_gap_addr_set(&ble_address));
#endif
APP_ERROR_CHECK(err_code);

// calling this to restore old advertisement data
Expand Down

0 comments on commit cdfe931

Please sign in to comment.