os_callout: directly call callback function in tick interrupt context if have't event queue
@@ -160,7 +160,11 @@ os_callout_tick(void)
OS_EXIT_CRITICAL(sr);
if (c) {
+ if (c->c_evq) {
os_eventq_put(c->c_evq, &c->c_ev);
+ } else {
+ c->c_ev.ev_cb(&c->c_ev);
+ }
} else {
break;
}
