Add missing assert.
[bertos.git] / app / triface / protocol.c
index 23f4612e3b8cde5fb1b64cd1c5be76cf5341d9d8..fa4c0bad9741bf18a8eed63e01a9a159773b45b1 100644 (file)
@@ -27,7 +27,7 @@
  * the GNU General Public License.
  *
  * Copyright 2003, 2004, 2006 Develer S.r.l. (http://www.develer.com/)
- * Copyright 2000 Bernardo Innocenti <bernie@codewiz.org>
+ * Copyright 2000 Bernie Innocenti <bernie@codewiz.org>
  *
  * -->
  *
@@ -38,7 +38,7 @@
  *
  * \author Giovanni Bajo <rasky@develer.com>
  * \author Marco Benelli <marco@develer.com>
- * \author Bernardo Innocenti <bernie@develer.com>
+ * \author Bernie Innocenti <bernie@codewiz.org>
  * \author Daniele Basile <asterix@develer.com>
  */
 
@@ -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 */