Fix reset cmd. Now work.
[bertos.git] / app / triface / protocol.c
index 23f4612e3b8cde5fb1b64cd1c5be76cf5341d9d8..01a85ad50e4a5bde0a178cc2ed93791829d30769 100644 (file)
@@ -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 */