diff options
-rw-r--r-- | zephyr/app/ec/ec_app_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zephyr/app/ec/ec_app_main.c b/zephyr/app/ec/ec_app_main.c index e0efb49475..f451f60521 100644 --- a/zephyr/app/ec/ec_app_main.c +++ b/zephyr/app/ec/ec_app_main.c @@ -37,6 +37,10 @@ void ec_app_main(void) system_print_banner(); + if (IS_ENABLED(CONFIG_PLATFORM_EC_WATCHDOG)) { + watchdog_init(); + } + /* * Keyboard scan init/Button init can set recovery events to * indicate to host entry into recovery mode. Before this is @@ -80,10 +84,6 @@ void ec_app_main(void) */ k_thread_priority_set(&k_sys_work_q.thread, LOWEST_THREAD_PRIORITY); - if (IS_ENABLED(CONFIG_PLATFORM_EC_WATCHDOG)) { - watchdog_init(); - } - /* Call init hooks before main tasks start */ if (IS_ENABLED(CONFIG_PLATFORM_EC_HOOKS)) { hook_notify(HOOK_INIT); |