From 278d2c781cec4e929ff8be74e24a6852ba659f34 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Fri, 29 Sep 2023 15:38:08 +0200 Subject: [PATCH] ztimer_periodic: fix example in documentation --- sys/include/ztimer/periodic.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/include/ztimer/periodic.h b/sys/include/ztimer/periodic.h index c06c648787b4..f2d5c1f13c5e 100644 --- a/sys/include/ztimer/periodic.h +++ b/sys/include/ztimer/periodic.h @@ -25,9 +25,12 @@ * ``` * #include "ztimer/periodic.h" * - * static void callback(void *arg) + * static bool callback(void *arg) * { * puts(arg); + * + * // keep the timer running + * return true; * } * *