Skip to content

Commit 1af549c

Browse files
committed
fix isuse with phy request log
1 parent 8ce3506 commit 1af549c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libraries/Bluefruit52Lib/src/BLEConnection.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,11 +501,9 @@ void BLEConnection::_eventHandler(ble_evt_t* evt)
501501
case BLE_GAP_EVT_PHY_UPDATE_REQUEST:
502502
{
503503
ble_gap_phys_t* req_phy = &evt->evt.gap_evt.params.phy_update_request.peer_preferred_phys;
504-
char const *phy_str[] = { "Auto", "1 Mbps", "2 Mbps", "Coded" };
505-
506504
(void) req_phy;
507-
(void) phy_str;
508-
LOG_LV1("GAP", "PHY request tx: %s, rx: %s", phy_str[req_phy->tx_phys], phy_str[req_phy->rx_phys]);
505+
506+
LOG_LV1("GAP", "PHY request tx = 0x%02X, rx = 0x%02X", req_phy->tx_phys, req_phy->rx_phys);
509507

510508
// Tell SoftDevice to choose PHY automatically
511509
ble_gap_phys_t phy = { BLE_GAP_PHY_AUTO, BLE_GAP_PHY_AUTO };

0 commit comments

Comments
 (0)