From 3013f4949f0ea1816a3865d47be9216adb75d74a Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 1 Dec 2008 18:35:36 +0000 Subject: [PATCH] Comply to new wdt interface. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1951 38d2e660-2303-0410-9eaa-f027e97ec537 --- examples/triface/protocol.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.25.1