This commit is contained in:
anonymou0719 2026-01-19 11:25:33 +00:00 committed by GitHub
commit 68a22f8949
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -409,7 +409,13 @@ static NOINLINE void prv_main_task_init(void) {
new_timer_service_init();
regular_timer_init();
clock_init();
// Initialize the task watchdog and immediately pause it for 30 seconds to
// give us time to initialize everything without worrying about task watchdog
// from firing if we block other tasks.
task_watchdog_init();
task_watchdog_pause(30);
analytics_init();
register_system_timers();
system_task_timer_init();
@ -499,6 +505,8 @@ static NOINLINE void prv_main_task_init(void) {
// Test setjmp/longjmp
prv_test_sjlj();
#endif
task_watchdog_resume();
}
static void main_task(void *parameter) {