Skip to content

Commit ebd9e90

Browse files
author
Pierluigi Petrelli
committed
fixing the return value of cancel()
1 parent b49375f commit ebd9e90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/timer.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,11 @@ class Timer {
9191
struct task * const task = &tasks[i];
9292
if (id == task->id) {
9393
remove(task);
94+
return true;
9495
}
9596
}
97+
98+
return false;
9699
}
97100

98101
/* Ticks the timer forward - call this function in loop() */

0 commit comments

Comments
 (0)