firmware: Use REG_SYS macro where appropriate

This shortens a very long line.
This commit is contained in:
Samuel Holland 2021-07-08 22:39:41 -05:00 committed by Ondrej Jirman
parent ce6638eb92
commit 1fd0bac031

View File

@ -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;