We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3124d31 commit da7b821Copy full SHA for da7b821
src/arduino-timer.h
@@ -116,13 +116,13 @@ class Timer {
116
117
/* Left until the task ends */
118
unsigned long
119
- left(const Task &task)
+ left(const Task &task) const
120
{
121
auto lft = 0ul;
122
if (!task)
123
return lft;
124
125
- timer_foreach_task(t) {
+ timer_foreach_const_task(t) {
126
if (t->handler && task_id(t) == task) {
127
const unsigned long now = time_func();
128
const unsigned long duration = now - t->start;
@@ -245,7 +245,7 @@ class Timer {
245
246
inline
247
Task
248
- task_id(const struct task * const t)
+ task_id(const struct task * const t) const
249
250
const Task id = reinterpret_cast<Task>(t);
251
0 commit comments