X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=app%2Ftriface%2Fprotocol.c;h=01a85ad50e4a5bde0a178cc2ed93791829d30769;hb=b2d09dd5e6470782290f3ba9b6175bf25688d208;hp=23f4612e3b8cde5fb1b64cd1c5be76cf5341d9d8;hpb=52b1a686cb873aafb09a7b0c19716bea252b7946;p=bertos.git diff --git a/app/triface/protocol.c b/app/triface/protocol.c index 23f4612e..01a85ad5 100644 --- a/app/triface/protocol.c +++ b/app/triface/protocol.c @@ -302,7 +302,14 @@ MAKE_CMD(reset, "", "", (void)args; wdt_init(7); wdt_start(); + + /*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 + gcc generate a warning message that suggest to use "noreturn" parameter in function reset.*/ + ASSERT(args); + while(args); 0; + }), 0) /* Din */