From 1fd0bac03139893f7da293be5f41deeeb813cb1a Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Thu, 8 Jul 2021 22:39:41 -0500 Subject: [PATCH] firmware: Use REG_SYS macro where appropriate This shortens a very long line. --- firmware/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/main.c b/firmware/main.c index d813aac..037c9dd 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -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;