mirror of
https://xff.cz/git/pinephone-keyboard/
synced 2024-09-20 01:49:58 +02:00
firmware: Jump to stock firmware sooner after powerup
Signed-off-by: Ondrej Jirman <megous@megous.com>
This commit is contained in:
parent
176a2da7e2
commit
41418cdc14
1 changed files with 2 additions and 2 deletions
|
@ -1886,8 +1886,8 @@ void main(void)
|
||||||
run_timed_tasks = 0;
|
run_timed_tasks = 0;
|
||||||
|
|
||||||
#if CONFIG_STOCK_FW
|
#if CONFIG_STOCK_FW
|
||||||
// after 1s check if we should jump to user firmware
|
// after 300ms check if we should jump to user firmware
|
||||||
if (!user_app_checked && ticks > 1000 / 20) {
|
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)
|
if (app_flag == 1 && ctl_regs[REG_SYS_USER_APP_BLOCK - REG_SYS_CONFIG] != REG_SYS_USER_APP_BLOCK_MAGIC)
|
||||||
jmp_to_user_fw();
|
jmp_to_user_fw();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue