From: asterix Date: Mon, 1 Dec 2008 18:35:36 +0000 (+0000) Subject: Comply to new wdt interface. X-Git-Tag: 2.1.0~731 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=3013f4949f0ea1816a3865d47be9216adb75d74a;p=bertos.git Comply to new wdt interface. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1951 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/examples/triface/protocol.c b/examples/triface/protocol.c index fa4c0bad..3e4197e0 100644 --- a/examples/triface/protocol.c +++ b/examples/triface/protocol.c @@ -300,8 +300,9 @@ MAKE_CMD(reset, "", "", ({ //Silence "args not used" warning. (void)args; - wdt_init(7); - wdt_start(); + wdt_init(); + wdt_setTimeout(7); + wdt_enable(true); /*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