Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/divemode.asm @ 612:ec2cfd4b748b
Blink better gas in bailout case (if CF42=1)
author | heinrichsweikamp |
---|---|
date | Sun, 15 Jul 2012 11:42:30 +0200 |
parents | 530a5c994ca2 |
children | 3ab53b57f879 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm Sun Jul 15 10:44:56 2012 +0200 +++ b/code_part1/OSTC_code_asm_part1/divemode.asm Sun Jul 15 11:42:30 2012 +0200 @@ -1153,10 +1153,14 @@ cpfslt xC+0 ; current depth<Change depth-better_gas_window? bsf better_gas_available ;=1: A better gas is available and a gas change is advised in divemode -check_gas_change6: ;Done +check_gas_change6: + btfsc is_bailout ;=1: CC mode, but bailout active! + bra check_gas_change7 ; In bailout, blink better gas (if required) + btfsc FLAG_const_ppO2_mode ; in ppO2 mode? bcf better_gas_available ; Yes, do not blink better gas +check_gas_change7: call PLED_active_gas_divemode; Display gas, if required (and with "*" if required...) return