Timers: Simplify reset and reset out of limp home
[revag-nm.git] / vw-nm-tools.h
index f4126a69f06e3c99eb19409b153841567ddd127f..44d5a1b39c1c7cd39878e0695d69fd7d0a9889f7 100644 (file)
@@ -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);
 }