diff code_part1/OSTC_code_asm_part1/divemode.asm @ 665:259e4c1bf3c2

grey-out TTS and ceiling after gas change (until new plan is ready)
author heinrichsweikamp
date Wed, 14 Nov 2012 12:39:39 +0100
parents ef198c1669f1
children 3282581fe178
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Wed Nov 14 12:02:14 2012 +0100
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Wed Nov 14 12:39:39 2012 +0100
@@ -604,6 +604,7 @@
     return                              ; Return is status <> 0
 
     ; Check if deco stops are necessary ?
+    bcf     decoplan_invalid            ; The decoplan is valid
 	movff	char_O_first_deco_depth,wait_temp	; copy ceiling to temp register
 	tstfsz	wait_temp							; Ceiling<0m?
 	bra		calc_deko_divemode3					; Yes!
@@ -1997,7 +1998,8 @@
 	clrf	average_depth_hold_total+3	; Clear Non-Resettable Average
 	bcf		depth_greater_100m			; clear flag
 ;	setf	last_diluent				; to be displayed after first calculation (range: 0 to 100 [%])
-	bcf		dekostop_active	
+	bcf		dekostop_active
+    bcf     decoplan_invalid
 	bcf		is_bailout					;=1: CC mode, but bailout active!		
 	bcf		better_gas_available        ;=1: A better gas is available and a gas change is advised in divemode
     bcf     tts_extra_time              ;=1: Compute TTS if extra time spent at current depth