# HG changeset patch # User heinrichsweikamp # Date 1329806673 -3600 # Node ID c84ea647ff587297f177339872116fefdfe84ceb # Parent 575f1a65ab5a287f935e636d76b394e32bc9af1c do not show gas switch stops in yellow when CF55=0 diff -r 575f1a65ab5a -r c84ea647ff58 code_part1/OSTC_code_asm_part1/changelog.txt --- a/code_part1/OSTC_code_asm_part1/changelog.txt Mon Feb 20 13:47:49 2012 +0100 +++ b/code_part1/OSTC_code_asm_part1/changelog.txt Tue Feb 21 07:44:33 2012 +0100 @@ -1,10 +1,10 @@ -New in 2.21 beta: -BETA Version - Do NOT use for diving! +New in 2.21: BUGFIX: GF warning in logbook memory NEW: Compute ppO2 for pSCR diving NEW: CF61: Show pSCR ppO2 in customview NEW: CF62: pSCR O2 Drop in percent NEW: CF63: pSCR counterlung ratio 1/x +BUGFIX: CF55 behaviour New in 2.20: Stable Release diff -r 575f1a65ab5a -r c84ea647ff58 code_part1/OSTC_code_asm_part1/definitions.asm --- a/code_part1/OSTC_code_asm_part1/definitions.asm Mon Feb 20 13:47:49 2012 +0100 +++ b/code_part1/OSTC_code_asm_part1/definitions.asm Tue Feb 21 07:44:33 2012 +0100 @@ -24,7 +24,7 @@ #DEFINE softwareversion_x d'2' ; Software version XX.YY #DEFINE softwareversion_y d'21' ; Software version XX.YY -#DEFINE softwareversion_beta 1 ; (and 0 for release) +#DEFINE softwareversion_beta 0 ; (and 0 for release) #DEFINE max_custom_number d'63' ; Number of last used custom function diff -r 575f1a65ab5a -r c84ea647ff58 code_part1/OSTC_code_asm_part1/pled_outputs.asm --- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm Mon Feb 20 13:47:49 2012 +0100 +++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm Tue Feb 21 07:44:33 2012 +0100 @@ -2598,11 +2598,18 @@ WIN_LEFT .100 btfss lo,7 ; Bit set ? - bra PLED_decoplan_std_stop ; No : Just an usual stop. - - movlw b'11111101' ; Yellow. - call PLED_set_color - bcf lo,7 ; and cleanup depth. + bra PLED_decoplan_std_stop ; No : Just an usual stop + + bcf lo,7 ; cleanup depth + + GETCUSTOM8 d'55' ; Load gas switch [min] in wreg + tstfsz WREG ; =0? + bra PLED_decoplan_show_stop1; No: Show gas switch stop + bra PLED_decoplan_std_stop ; Yes: Just an usual stop + +PLED_decoplan_show_stop1: + movlw color_yellow + call PLED_set_color ; Show in yellow for gas switch bra PLED_decoplan_nstd_stop PLED_decoplan_std_stop: