comparison src/start.asm @ 21:79b2084fd75a

Reset options to default if they are not within the allowed min/max values
author heinrichsweikamp
date Thu, 04 Jul 2013 09:51:33 +0200
parents 7b06f20881be
children e402813343b6
comparison
equal deleted inserted replaced
20:9b7dd3103545 21:79b2084fd75a
212 bra check_firmware_new2 212 bra check_firmware_new2
213 213
214 global restart 214 global restart
215 restart: 215 restart:
216 clrf STKPTR ; Never return from here 216 clrf STKPTR ; Never return from here
217 extern option_save_all 217 extern option_save_all, option_check_all
218
219 call option_check_all ; Check all options (and reset if not within their min/max boundaries)
218 btfsc menubit ; Return from Menu/COMM mode or timeout? 220 btfsc menubit ; Return from Menu/COMM mode or timeout?
219 call option_save_all ; Yes, save all settings into EEPROM 221 call option_save_all ; Yes, save all settings into EEPROM
220 222
221 clrf flag1 ; clear all flags 223 clrf flag1 ; clear all flags
222 clrf flag2 224 clrf flag2