firmware: Use REG_SYS macro where appropriate
This shortens a very long line.
This commit is contained in:
parent
ce6638eb92
commit
1fd0bac031
@ -1887,7 +1887,7 @@ void main(void)
|
|||||||
#if CONFIG_STOCK_FW
|
#if CONFIG_STOCK_FW
|
||||||
// after 300ms check if we should jump to user firmware
|
// after 300ms check if we should jump to user firmware
|
||||||
if (!user_app_checked && ticks > 300 / 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 && REG_SYS(USER_APP_BLOCK) != REG_SYS_USER_APP_BLOCK_MAGIC)
|
||||||
jmp_to_user_fw();
|
jmp_to_user_fw();
|
||||||
|
|
||||||
user_app_checked = 1;
|
user_app_checked = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user