nmgr_os; reduce the chance of triggering watchdog during reboot
by tickling it just before doing managed reset.
#include <string.h>
#include <hal/hal_system.h>
+#include <hal/hal_watchdog.h>
#include <mgmt/mgmt.h>
@@ -308,6 +309,12 @@ nmgr_datetime_set(struct mgmt_cbuf *cb)
static void
nmgr_reset_tmo(struct os_event *ev)
{
+ /*
+ * Tickle watchdog just before re-entering bootloader.
+ * Depending on what system has been doing lately, watchdog
+ * timer might be close to firing.
+ */
+ hal_watchdog_tickle();
hal_system_reset();
}
