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 fda5ccb commit 109f88eCopy full SHA for 109f88e
src/arduino-timer.h
@@ -99,6 +99,13 @@ class Timer {
99
/* Ticks the timer forward - call this function in loop() */
100
unsigned long
101
tick()
102
+ {
103
+ tick<void>();
104
+ return ticks();
105
+ }
106
+
107
+ template <typename R> void
108
+ tick()
109
{
110
for (size_t i = 0; i < max_tasks; ++i) {
111
struct task * const task = &tasks[i];
@@ -115,8 +122,6 @@ class Timer {
115
122
}
116
123
117
124
118
-
119
- return ticks();
120
125
121
126
127
/* Ticks until the next event */
0 commit comments