changeset 612:ec2cfd4b748b

Blink better gas in bailout case (if CF42=1)
author heinrichsweikamp
date Sun, 15 Jul 2012 11:42:30 +0200
parents 99c601c24065
children 46fc9f02ae03
files code_part1/OSTC_code_asm_part1/changelog.txt code_part1/OSTC_code_asm_part1/divemode.asm
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/changelog.txt	Sun Jul 15 10:44:56 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/changelog.txt	Sun Jul 15 11:42:30 2012 +0200
@@ -1,5 +1,7 @@
 New in 2.28:
 BETA Version - Do NOT use for diving!
+BUGFIX: Blink better gas in bailout case (if CF42=1)
+CHANGE: Surface screen layout change
 
 New in 2.27:
 BETA Version - Do NOT use for diving!
--- 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