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

kopyscinski 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 1d9e968e ll/ble_ll_sched: fix preprocessor directives in 
ble_ll_sched_preempt
1d9e968e is described below

commit 1d9e968ead8d1d1243de318bd619f099e68849a7
Author: Krzysztof Kopyściński <krzysztof.kopyscin...@codecoup.pl>
AuthorDate: Tue Nov 21 13:16:44 2023 +0100

    ll/ble_ll_sched: fix preprocessor directives in ble_ll_sched_preempt
    
    BLE_LL_SCHED_TYPE_PERIODIC does not require BLE_LL_CFG_FEAT_LL_EXT_ADV.
---
 nimble/controller/src/ble_ll_sched.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nimble/controller/src/ble_ll_sched.c 
b/nimble/controller/src/ble_ll_sched.c
index 5cd01e04..bfec620d 100644
--- a/nimble/controller/src/ble_ll_sched.c
+++ b/nimble/controller/src/ble_ll_sched.c
@@ -159,19 +159,19 @@ ble_ll_sched_preempt(struct ble_ll_sched_item *sch,
             case BLE_LL_SCHED_TYPE_SCAN_AUX:
                 ble_ll_scan_aux_break(entry->cb_arg);
                 break;
+#endif
 #if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_PERIODIC_ADV)
 #if MYNEWT_VAL(BLE_LL_ROLE_BROADCASTER)
             case BLE_LL_SCHED_TYPE_PERIODIC:
                 ble_ll_adv_periodic_rmvd_from_sched(entry->cb_arg);
                 break;
 #endif
-#if MYNEWT_VAL(BLE_LL_ROLE_OBSERVER)
+#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_EXT_ADV) && MYNEWT_VAL(BLE_LL_ROLE_OBSERVER)
             case BLE_LL_SCHED_TYPE_SYNC:
                 ble_ll_sync_rmvd_from_sched(entry->cb_arg);
                 break;
 #endif
 #endif
-#endif
 #if MYNEWT_VAL(BLE_LL_ISO_BROADCASTER)
         case BLE_LL_SCHED_TYPE_BIG:
             /* FIXME sometimes it may be useful to preempt... */

Reply via email to