andrzej-kaczmarek commented on a change in pull request #461: 
nimble/controller: Improve scanner (do not merge)
URL: https://github.com/apache/mynewt-core/pull/461#discussion_r129692924
 
 

 ##########
 File path: net/nimble/controller/src/ble_ll_sched.c
 ##########
 @@ -1107,30 +1107,43 @@ ble_ll_sched_execute_item(struct ble_ll_sched_item 
*sch)
     int rc;
     uint8_t lls;
 
+    lls = ble_ll_state_get();
+    if (lls == BLE_LL_STATE_STANDBY) {
+        goto sched;
+    }
+
+    if (sch->sched_type == BLE_LL_SCHED_TYPE_AUX_SCAN) {
+        if (lls == BLE_LL_STATE_INITIATING || lls == BLE_LL_STATE_SCANNING) {
 
 Review comment:
   ignore this comment - I was thinking about some other piece of code when 
writing so it's not applicable here :)
 
----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to