Commit fdea8518 authored by Armin Brauns's avatar Armin Brauns Committed by Henrik Brix Andersen
Browse files

task_wdt: start feeding hardware watchdog immediately after init



Without this, the hardware watchdog would expire if no task watchdogs were
registered within one hardware watchdog period after init. Start the
background channel immediately after init to avoid this.

Signed-off-by: default avatarArmin Brauns <armin.brauns@embedded-solutions.at>
parent 10156f5f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -147,6 +147,7 @@ int task_wdt_init(const struct device *hw_wdt)
	}

	k_timer_init(&timer, task_wdt_trigger, NULL);
	schedule_next_timeout(sys_clock_tick_get());

	return 0;
}