From 0d7ae1bc1819e740adcbaf04c65895cdf97fb209 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Wed, 21 Sep 2022 14:01:04 +0200 Subject: [PATCH] nimble/phy/nrf5x: Enable LNA on "start now" rx LNA was not enabled properly if RX was started "now". --- nimble/drivers/nrf5x/src/ble_phy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nimble/drivers/nrf5x/src/ble_phy.c b/nimble/drivers/nrf5x/src/ble_phy.c index 5108c4569..dc9961567 100644 --- a/nimble/drivers/nrf5x/src/ble_phy.c +++ b/nimble/drivers/nrf5x/src/ble_phy.c @@ -786,6 +786,10 @@ ble_phy_set_start_now(void) nrf_rtc_cc_set(NRF_RTC0, 0, now + 3); nrf_rtc_event_enable(NRF_RTC0, RTC_EVTENSET_COMPARE0_Msk); +#if PHY_USE_FEM_LNA + phy_fem_enable_lna(); +#endif + /* Enable PPI */ phy_ppi_rtc0_compare0_to_timer0_start_enable();