Skip to content

Commit 5418b89

Browse files
format checks
1 parent 773c446 commit 5418b89

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Src/HALAL/Services/Time/Scheduler.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ void Scheduler::schedule_next_interval() {
282282
Task& next_task = tasks_[next_id];
283283
int32_t diff = (int32_t)(next_task.next_fire_us - static_cast<uint32_t>(global_tick_us_));
284284
SchedUnlock();
285-
285+
286286
if (diff >= -1 && diff <= 1) [[unlikely]] {
287287
current_interval_us_ = 1;
288288
SET_BIT(Scheduler_global_timer->EGR, TIM_EGR_UG); // This should cause an interrupt
@@ -325,9 +325,7 @@ void Scheduler::on_timer_update() {
325325
SchedUnlock();
326326
}
327327

328-
//SchedLock();
329328
schedule_next_interval();
330-
//SchedUnlock();
331329
}
332330

333331
uint16_t Scheduler::register_task(uint32_t period_us, callback_t func) {

0 commit comments

Comments
 (0)