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 886242c commit 3a159a4Copy full SHA for 3a159a4
watchdog/hello_watchdog/hello_watchdog.c
@@ -11,7 +11,7 @@
11
int main() {
12
stdio_init_all();
13
14
- if (watchdog_caused_reboot()) {
+ if (watchdog_enable_caused_reboot()) {
15
printf("Rebooted by Watchdog!\n");
16
return 0;
17
} else {
@@ -30,4 +30,4 @@ int main() {
30
// Wait in an infinite loop and don't update the watchdog so it reboots us
31
printf("Waiting to be rebooted by watchdog\n");
32
while(1);
33
-}
+}
0 commit comments