X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Ftriface%2Fprotocol.c;h=1f630a1b3e9ea97835e2ee031167782cd968d4df;hb=c276c0173bec907b25af776f5a692114f79964fe;hp=fa4c0bad9741bf18a8eed63e01a9a159773b45b1;hpb=24c21c92d29b76a3f0de0a107f4bafef7bb0f812;p=bertos.git diff --git a/examples/triface/protocol.c b/examples/triface/protocol.c index fa4c0bad..1f630a1b 100644 --- a/examples/triface/protocol.c +++ b/examples/triface/protocol.c @@ -51,7 +51,7 @@ #include #include #include -#include +#include #include #include @@ -300,8 +300,7 @@ MAKE_CMD(reset, "", "", ({ //Silence "args not used" warning. (void)args; - wdt_init(7); - wdt_start(); + 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