mirror of
https://xff.cz/git/pinephone-keyboard/
synced 2024-11-09 22:15:42 +01:00
firmware: Use REG_SYS macro where appropriate
This shortens a very long line.
This commit is contained in:
parent
ce6638eb92
commit
1fd0bac031
1 changed files with 1 additions and 1 deletions
|
@ -1887,7 +1887,7 @@ void main(void)
|
|||
#if CONFIG_STOCK_FW
|
||||
// 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)
|
||||
if (app_flag == 1 && REG_SYS(USER_APP_BLOCK) != REG_SYS_USER_APP_BLOCK_MAGIC)
|
||||
jmp_to_user_fw();
|
||||
|
||||
user_app_checked = 1;
|
||||
|
|
Loading…
Reference in a new issue