From b82153c3429d98955829f9ed030322cb50ee6df3 Mon Sep 17 00:00:00 2001 From: Mathias Rasmussen Date: Mon, 19 Apr 2021 01:06:29 +0200 Subject: [PATCH] refactor: Only decode settings during startup --- Bluejay.asm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Bluejay.asm b/Bluejay.asm index e37eb95..0471128 100644 --- a/Bluejay.asm +++ b/Bluejay.asm @@ -3481,7 +3481,7 @@ set_default_parameters: ; ; Decode settings ; -; Decodes various settings +; Decodes programmed settings and set RAM variables accordingly ; ;**** **** **** **** **** **** **** **** **** **** **** **** **** decode_settings: @@ -3626,8 +3626,7 @@ ENDIF call set_default_parameters ; Set default programmed parameters call read_all_eeprom_parameters ; Read all programmed parameters - mov Temp1, #Pgm_Beep_Strength ; Read programmed beep strength - mov Beep_Strength, @Temp1 ; Set beep strength + call decode_settings ; Decode programmed settings ; Initializing beeps clr IE_EA ; Disable interrupts explicitly @@ -3663,7 +3662,6 @@ input_high_check_3: ljmp 1C00h ; Jump to bootloader bootloader_done: - call decode_settings call switch_power_off IF MCU_48MHZ == 1 Set_MCU_Clk_24MHz ; Set clock frequency