We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 773c446 commit 5418b89Copy full SHA for 5418b89
1 file changed
Src/HALAL/Services/Time/Scheduler.cpp
@@ -282,7 +282,7 @@ void Scheduler::schedule_next_interval() {
282
Task& next_task = tasks_[next_id];
283
int32_t diff = (int32_t)(next_task.next_fire_us - static_cast<uint32_t>(global_tick_us_));
284
SchedUnlock();
285
-
+
286
if (diff >= -1 && diff <= 1) [[unlikely]] {
287
current_interval_us_ = 1;
288
SET_BIT(Scheduler_global_timer->EGR, TIM_EGR_UG); // This should cause an interrupt
@@ -325,9 +325,7 @@ void Scheduler::on_timer_update() {
325
326
}
327
328
- //SchedLock();
329
schedule_next_interval();
330
- //SchedUnlock();
331
332
333
uint16_t Scheduler::register_task(uint32_t period_us, callback_t func) {
0 commit comments