From 93a111710a794d7c602d2b31387e4f882df4a7cd Mon Sep 17 00:00:00 2001 From: norly Date: Sun, 19 Mar 2017 01:22:14 +0100 Subject: Timers: Simplify reset and reset out of limp home --- vw-nm-tools.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'vw-nm-tools.h') diff --git a/vw-nm-tools.h b/vw-nm-tools.h index f4126a6..44d5a1b 100644 --- a/vw-nm-tools.h +++ b/vw-nm-tools.h @@ -121,14 +121,12 @@ static void nm_set_timer_awol(struct NM_Main *nm) nm->timer_reason = NM_TIMER_AWOL; } -/* static void nm_set_timer_limphome(struct NM_Main *nm) { nm->tv.tv_sec = 0; nm->tv.tv_usec = NM_USECS_LIMPHOME; nm->timer_reason = NM_TIMER_LIMPHOME; } -*/ @@ -147,7 +145,7 @@ static void nm_reset(struct NM_Main *nm) nm->nodes[nm->my_id].next = nm->my_id; nm->nodes[nm->my_id].state = NM_MAIN_LOGIN; - nm_set_timer_normal(nm); + nm_set_timer_now(nm); } -- cgit v1.2.3