From c8a4a15b3d7a98d5782140f1282a4aa8e76ec9bd Mon Sep 17 00:00:00 2001 From: chain40 Date: Wed, 7 Jun 2023 23:12:29 +0800 Subject: [PATCH] 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. --- main.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/main.c b/main.c index 36f849e..84b0b06 100644 --- a/main.c +++ b/main.c @@ -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: {