Skip to content

Commit

Permalink
samples: peripheral: 802154_phy_test adjust to 802.15.4 API change
Browse files Browse the repository at this point in the history
The prototype of `nrf_802154_energy_detected` public API function
of the nRF 802.15.4 Radio Driver has changed. This commit adjusts
to these changes.

Signed-off-by: Andrzej Kuros <andrzej.kuros@nordicsemi.no>
  • Loading branch information
ankuns authored and nordicjm committed Aug 22, 2023
1 parent dea9c1a commit 1c42f21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion samples/peripheral/802154_phy_test/src/rf_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,10 @@ void nrf_802154_cca_failed(nrf_802154_cca_error_t error)
k_work_submit(&rf_cca_failed_wq);
}

void nrf_802154_energy_detected(uint8_t result)
void nrf_802154_energy_detected(const nrf_802154_energy_detected_t *p_result)
{
uint8_t result = nrf_802154_energy_level_from_dbm_calculate(p_result->ed_dbm);

LOG_INF("ED finished with result %d", result);

rf_ed_detected_info.result = result;
Expand Down

0 comments on commit 1c42f21

Please sign in to comment.