andrzej-kaczmarek commented on a change in pull request #163: [WIP] Add support 
for Nordic RAAL
URL: https://github.com/apache/mynewt-nimble/pull/163#discussion_r215657815
 
 

 ##########
 File path: nimble/controller/src/ble_ll_sched.c
 ##########
 @@ -1237,6 +1252,81 @@ ble_ll_sched_next_time(uint32_t *next_event_time)
     return rc;
 }
 
+uint8_t
+ble_ll_sched_get_current_type(void)
+{
+    if ((int32_t)(g_ble_ll_sched_current.end_time - os_cputime_get32()) > 0) {
 
 Review comment:
   none means that currently no scheduled item is being executed.
   the check above is required since we do not have trigger when scheduled item 
finishes execution thus `g_ble_ll_sched_current` is not reset automatically - 
we do this here if its end time is past current time.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to