Skip to content

Commit 278d2c7

Browse files
committed
ztimer_periodic: fix example in documentation
1 parent b45cb32 commit 278d2c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sys/include/ztimer/periodic.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@
2525
* ```
2626
* #include "ztimer/periodic.h"
2727
*
28-
* static void callback(void *arg)
28+
* static bool callback(void *arg)
2929
* {
3030
* puts(arg);
31+
*
32+
* // keep the timer running
33+
* return true;
3134
* }
3235
*
3336
*

0 commit comments

Comments
 (0)