From 41418cdc14251992aaf97940269fd28a2ebe1fb3 Mon Sep 17 00:00:00 2001 From: Ondrej Jirman Date: Mon, 2 Aug 2021 10:08:21 +0200 Subject: [PATCH] firmware: Jump to stock firmware sooner after powerup Signed-off-by: Ondrej Jirman --- firmware/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/main.c b/firmware/main.c index 70b41d2..0e7d6ad 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -1886,8 +1886,8 @@ void main(void) run_timed_tasks = 0; #if CONFIG_STOCK_FW - // after 1s check if we should jump to user firmware - if (!user_app_checked && ticks > 1000 / 20) { + // after 300ms check if we should jump to user firmware + if (!user_app_checked && ticks > 300 / 20) { if (app_flag == 1 && ctl_regs[REG_SYS_USER_APP_BLOCK - REG_SYS_CONFIG] != REG_SYS_USER_APP_BLOCK_MAGIC) jmp_to_user_fw();