# HG changeset patch # User heinrichsweikamp # Date 1359207386 -3600 # Node ID 8ffbd5cb4b423a4d0fb9b50b1f8e08db81039ed9 # Parent aebb6d0392491588d0a5a76fe0286445259367a2 Hard-coded min. Values for CF00 and CF01 Set cursor to "Exit" when leaving sub-menus diff -r aebb6d039249 -r 8ffbd5cb4b42 code_part1/OSTC_code_asm_part1/changelog.txt --- a/code_part1/OSTC_code_asm_part1/changelog.txt Sat Jan 26 14:11:07 2013 +0100 +++ b/code_part1/OSTC_code_asm_part1/changelog.txt Sat Jan 26 14:36:26 2013 +0100 @@ -5,6 +5,8 @@ CHANGE: Use 4Bytes in EEPROM for diluents (Same as OC gases) NEW: Show active gas indicator below first gas in surfacemode UPDATE: OSTC interface description file +NEW: Hard-coded min. Values for CF00 and CF01 +CHANGE: Set cursor to "Exit" when leaving sub-menus New in 2.59: BETA Version - Do NOT use for diving! diff -r aebb6d039249 -r 8ffbd5cb4b42 code_part1/OSTC_code_asm_part1/divemode.asm --- a/code_part1/OSTC_code_asm_part1/divemode.asm Sat Jan 26 14:11:07 2013 +0100 +++ b/code_part1/OSTC_code_asm_part1/divemode.asm Sat Jan 26 14:36:26 2013 +0100 @@ -1773,12 +1773,22 @@ ; in Divemode, check threshold from CF01 GETCUSTOM8 .1 ; loads dive_threshold in WREG movwf sub_a+0 ; dive_treshold is in cm + + movlw .20 + cpfsgt sub_a+0 + movwf sub_a+0 ; Make sure to have at least 20cm threshold + clrf sub_a+1 bra set_dive_modes1 ; Done. set_dive_modes0: GETCUSTOM8 .0 ; loads dive_threshold in WREG movwf sub_a+0 ; dive_treshold is in cm + + movlw .20 + cpfsgt sub_a+0 + movwf sub_a+0 ; Make sure to have at least 20cm threshold + clrf sub_a+1 bra set_dive_modes1 ; Done. diff -r aebb6d039249 -r 8ffbd5cb4b42 code_part1/OSTC_code_asm_part1/menu.asm --- a/code_part1/OSTC_code_asm_part1/menu.asm Sat Jan 26 14:11:07 2013 +0100 +++ b/code_part1/OSTC_code_asm_part1/menu.asm Sat Jan 26 14:36:26 2013 +0100 @@ -146,7 +146,7 @@ goto menu_simulator dcfsnz menupos,F goto altimeter_menu - movlw d'5' + movlw d'6' movwf menupos bra menu2 ; exit... @@ -340,7 +340,7 @@ bra toggle_salinity dcfsnz menupos,F bra toggle_brightness ; toggle between ECO and HIGH - movlw d'5' ; set cursor to "More again" + movlw d'6' ; set cursor to "More again" movwf menupos bra setup_menu2 ; exit...