remove PHY request when connected event.
1. 2M PHY can be requested from either slave or master device. 2. In Elite device, the 2M PHY be requested from master device.
This commit is contained in:
@@ -46,14 +46,6 @@ static void le_evt_handler(ble_evt_t const *p_ble_evt, void *p_context)
|
||||
NRF_LOG_INFO("Connect to peer.");
|
||||
err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_CONN, p_ble_evt->evt.gap_evt.conn_handle, 8);
|
||||
APP_ERROR_CHECK(err_code);
|
||||
|
||||
NRF_LOG_INFO("Send PHY update request.");
|
||||
ble_gap_phys_t const phys = {
|
||||
.rx_phys = BLE_GAP_PHY_AUTO,
|
||||
.tx_phys = BLE_GAP_PHY_AUTO,
|
||||
};
|
||||
err_code = sd_ble_gap_phy_update(p_ble_evt->evt.gap_evt.conn_handle, &phys);
|
||||
APP_ERROR_CHECK(err_code);
|
||||
}
|
||||
break;
|
||||
case BLE_GAP_EVT_DISCONNECTED: {
|
||||
|
||||
Reference in New Issue
Block a user