diff 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
line wrap: on
line diff
--- a/src/start.asm	Wed Jul 03 23:19:57 2013 +0200
+++ b/src/start.asm	Thu Jul 04 09:51:33 2013 +0200
@@ -214,7 +214,9 @@
 	global	restart	
 restart:
     clrf    STKPTR                  ; Never return from here
-	extern	option_save_all
+	extern	option_save_all, option_check_all
+
+    call    option_check_all        ; Check all options (and reset if not within their min/max boundaries)
 	btfsc	menubit					; Return from Menu/COMM mode or timeout?
 	call	option_save_all			; Yes, save all settings into EEPROM