From 8907417836b9042bcd67a060bd1ad6ce2f39c33b Mon Sep 17 00:00:00 2001 From: Corentin LEMAITRE Date: Wed, 27 Mar 2024 12:09:15 +0100 Subject: [PATCH] Update hello_watchdog to detect reboot only by watchdog --- watchdog/hello_watchdog/hello_watchdog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watchdog/hello_watchdog/hello_watchdog.c b/watchdog/hello_watchdog/hello_watchdog.c index 0534b73a5..984e1bacf 100644 --- a/watchdog/hello_watchdog/hello_watchdog.c +++ b/watchdog/hello_watchdog/hello_watchdog.c @@ -11,7 +11,7 @@ int main() { stdio_init_all(); - if (watchdog_caused_reboot()) { + if (watchdog_enable_caused_reboot()) { printf("Rebooted by Watchdog!\n"); return 0; } else { @@ -30,4 +30,4 @@ int main() { // Wait in an infinite loop and don't update the watchdog so it reboots us printf("Waiting to be rebooted by watchdog\n"); while(1); -} \ No newline at end of file +}