mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] rymanluk closed pull request #767: nimble/ll_dtm: Couple of fixes for DTM code
Date Thu, 01 Jan 1970 00:00:00 GMT
rymanluk closed pull request #767: nimble/ll_dtm: Couple of fixes for DTM code
URL: https://github.com/apache/mynewt-core/pull/767
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/net/nimble/controller/src/ble_ll_dtm.c b/net/nimble/controller/src/ble_ll_dtm.c
index 487b4e90e..a3884669b 100644
--- a/net/nimble/controller/src/ble_ll_dtm.c
+++ b/net/nimble/controller/src/ble_ll_dtm.c
@@ -314,6 +314,12 @@ ble_ll_dtm_rx_start(void)
 
     ble_ll_state_set(BLE_LL_STATE_DTM);
 
+#ifdef BLE_XCVR_RFCLK
+    if (ble_ll_xcvr_rfclk_state() == BLE_RFCLK_STATE_OFF) {
+        ble_ll_xcvr_rfclk_start_now(os_cputime_get32());
+    }
+#endif
+
     return 0;
 }
 
diff --git a/net/nimble/controller/src/ble_ll_sched.c b/net/nimble/controller/src/ble_ll_sched.c
index 9530d906b..8b44025f1 100644
--- a/net/nimble/controller/src/ble_ll_sched.c
+++ b/net/nimble/controller/src/ble_ll_sched.c
@@ -1480,7 +1480,7 @@ int ble_ll_sched_dtm(struct ble_ll_sched_item *sch)
     sch = TAILQ_FIRST(&g_ble_ll_sched_q);
 
 #ifdef BLE_XCVR_RFCLK
-        ble_ll_xcvr_rfclk_timer_start(sch->start_time);
+    ble_ll_xcvr_rfclk_timer_start(sch->start_time);
 #endif
 
     OS_EXIT_CRITICAL(sr);


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message