Skip to content

Commit

Permalink
bluetooth switch fix (#39)
Browse files Browse the repository at this point in the history
Signed-off-by: Adam BZH <adam@onekey.so>
  • Loading branch information
424778940z authored Jun 4, 2024
1 parent 8693cd9 commit 2dbd7b0
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -542,14 +542,9 @@ uint32_t ble_advertising_stop(ble_advertising_t * const p_advertising)
{
uint32_t err_code;

// no adv on disconnect
p_advertising->adv_modes_config.ble_adv_on_disconnect_disabled = false;

// no recuring
p_advertising->adv_evt = BLE_ADV_EVT_IDLE;

// stop adv
err_code = sd_ble_gap_adv_stop(p_advertising->adv_handle);
p_advertising->evt_handler(BLE_ADV_EVT_IDLE);
if(err_code != NRF_SUCCESS)
{
return err_code;
Expand Down

0 comments on commit 2dbd7b0

Please sign in to comment.