example/le_streamer_client: fix index of phy_names (#630)

This commit is contained in:
Tobias Müller 2024-09-26 09:04:21 +02:00 committed by GitHub
parent 5ba953c2ee
commit 143eca7a03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -454,7 +454,7 @@ static void hci_event_handler(uint8_t packet_type, uint16_t channel, uint8_t *pa
case HCI_SUBEVENT_LE_PHY_UPDATE_COMPLETE:
con_handle = hci_subevent_le_phy_update_complete_get_connection_handle(packet);
printf("- LE Connection 0x%04x: PHY update - using LE %s PHY now\n", con_handle,
phy_names[hci_subevent_le_phy_update_complete_get_tx_phy(packet)]);
phy_names[hci_subevent_le_phy_update_complete_get_tx_phy(packet) - 1]);
break;
default:
break;