Skip to content

Commit 8a531b7

Browse files
committed
Reword comment.
1 parent 72b28d5 commit 8a531b7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cores/esp8266/Schedule.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ void run_scheduled_functions();
5959
// functions. However a user function returning false will cancel itself.
6060
// * Long running operations or yield() or delay() are not allowed in the
6161
// recurrent function.
62-
// * If a wakeupToken is used, anytime during scheduling when its value differs from that
63-
// during this call, any remaining delay from repeat_us is disregarded, and fn is executed.
64-
bool schedule_recurrent_function_us(const std::function<bool(void)>& fn, uint32_t repeat_us,
65-
const std::atomic<bool>* wakeupToken = nullptr);
62+
// * If a wakeupToken is used, anytime during scheduling when its value differs
63+
// from the original one in this call, any remaining delay from repeat_us is
64+
// disregarded, and fn is executed.
65+
bool schedule_recurrent_function_us(const std::function<bool(void)>& fn,
66+
uint32_t repeat_us, const std::atomic<bool>* wakeupToken = nullptr);
6667

6768
// Test recurrence and run recurrent scheduled functions.
6869
// (internally called at every `yield()` and `loop()`)

0 commit comments

Comments
 (0)