This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 0d7ae1bc nimble/phy/nrf5x: Enable LNA on "start now" rx
0d7ae1bc is described below

commit 0d7ae1bc1819e740adcbaf04c65895cdf97fb209
Author: Andrzej Kaczmarek <[email protected]>
AuthorDate: Wed Sep 21 14:01:04 2022 +0200

    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 5108c456..dc996156 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();
 

Reply via email to