From: qwert Date: Fri, 25 Jul 2008 15:21:30 +0000 (+0000) Subject: Fix reset cmd. Now work. X-Git-Tag: 2.0.0~416 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b2d09dd5e6470782290f3ba9b6175bf25688d208;p=bertos.git Fix reset cmd. Now work. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1518 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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 */