X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Ftriface%2Fprotocol.c;h=1f630a1b3e9ea97835e2ee031167782cd968d4df;hb=5a368e9010a500d9714c292552877ba5b4885c74;hp=3e4197e0c4fbde8c68eaf52b3b1713b94068f525;hpb=3013f4949f0ea1816a3865d47be9216adb75d74a;p=bertos.git diff --git a/examples/triface/protocol.c b/examples/triface/protocol.c index 3e4197e0..1f630a1b 100644 --- a/examples/triface/protocol.c +++ b/examples/triface/protocol.c @@ -51,7 +51,7 @@ #include #include #include -#include +#include #include #include @@ -300,9 +300,7 @@ MAKE_CMD(reset, "", "", ({ //Silence "args not used" warning. (void)args; - wdt_init(); - wdt_setTimeout(7); - wdt_enable(true); + wdt_enable(WDTO_2S); /*We want to have an infinite loop that lock access on watchdog timer. This piece of code it's equivalent to a while(true), but we have done this because