mirror of https://github.com/google/pebble
Merge 1a73226fed into 4051c5bb97
This commit is contained in:
commit
68a22f8949
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue