From b2d09dd5e6470782290f3ba9b6175bf25688d208 Mon Sep 17 00:00:00 2001 From: qwert Date: Fri, 25 Jul 2008 15:21:30 +0000 Subject: [PATCH] Fix reset cmd. Now work. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1518 38d2e660-2303-0410-9eaa-f027e97ec537 --- app/triface/protocol.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 */ -- 2.25.1