@@ -408,6 +408,7 @@ void NimBLEClient::setConfig(NimBLEClient::Config config) {
408408void NimBLEClient::setConnectPhy (uint8_t mask) {
409409 m_phyMask = mask;
410410} // setConnectPhy
411+ # endif
411412
412413/* *
413414 * @brief Request a change to the PHY used for this peer connection.
@@ -450,7 +451,6 @@ bool NimBLEClient::getPhy(uint8_t* txPhy, uint8_t* rxPhy) {
450451
451452 return rc == 0 ;
452453} // getPhy
453- # endif
454454
455455/* *
456456 * @brief Set the connection parameters to use when connecting to a server.
@@ -1141,7 +1141,6 @@ int NimBLEClient::handleGapEvent(struct ble_gap_event* event, void* arg) {
11411141 break ;
11421142 } // BLE_GAP_EVENT_IDENTITY_RESOLVED
11431143
1144- # if CONFIG_BT_NIMBLE_EXT_ADV
11451144 case BLE_GAP_EVENT_PHY_UPDATE_COMPLETE: {
11461145 NimBLEConnInfo peerInfo;
11471146 rc = ble_gap_conn_find (event->phy_updated .conn_handle , &peerInfo.m_desc );
@@ -1152,7 +1151,6 @@ int NimBLEClient::handleGapEvent(struct ble_gap_event* event, void* arg) {
11521151 pClient->m_pClientCallbacks ->onPhyUpdate (pClient, event->phy_updated .tx_phy , event->phy_updated .rx_phy );
11531152 return 0 ;
11541153 } // BLE_GAP_EVENT_PHY_UPDATE_COMPLETE
1155- # endif
11561154
11571155 case BLE_GAP_EVENT_MTU: {
11581156 if (pClient->m_connHandle != event->mtu .conn_handle ) {
@@ -1298,10 +1296,9 @@ void NimBLEClientCallbacks::onMTUChange(NimBLEClient* pClient, uint16_t mtu) {
12981296 NIMBLE_LOGD (CB_TAG, " onMTUChange: default" );
12991297} // onMTUChange
13001298
1301- # if CONFIG_BT_NIMBLE_EXT_ADV
13021299void NimBLEClientCallbacks::onPhyUpdate (NimBLEClient* pClient, uint8_t txPhy, uint8_t rxPhy) {
13031300 NIMBLE_LOGD (CB_TAG, " onPhyUpdate: default, txPhy: %d, rxPhy: %d" , txPhy, rxPhy);
13041301} // onPhyUpdate
1305- # endif
1302+ #
13061303
13071304#endif /* CONFIG_BT_ENABLED && CONFIG_BT_NIMBLE_ROLE_CENTRAL */
0 commit comments