diff code_part1/OSTC_code_asm_part1/pled_outputs.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 8dd730d3a5d7
children 3282581fe178
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Wed Nov 14 12:02:14 2012 +0100
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Wed Nov 14 12:39:39 2012 +0100
@@ -473,6 +473,8 @@
 	WIN_INVERT	.0                      ; Init new Wordprocessor
 	bcf     leftbind
 	PLED_color_code		warn_ceiling    ; Color-code Output
+    btfsc   decoplan_invalid            ; The decoplan needs to updated...
+    call    PLED_grey                   ; .. so set the color to grey
 	lfsr	FSR2,letter
 	movff	char_O_first_deco_depth,lo  ; Ceiling in m
 	output_99
@@ -490,11 +492,14 @@
 	WIN_INVERT	.0					    ; Init new Wordprocessor
 
 	call	PLED_standard_color
+    btfsc   decoplan_invalid            ; The decoplan needs to updated...
+    call    PLED_grey                   ; .. so set the color to grey
 	lfsr	FSR2,letter
 	movff	int_O_ascenttime+0,lo       ; TTS
 	movff	int_O_ascenttime+1,hi       ; on 16bits
 	output_16
 	STRCAT_PRINT    "'"
+	call	PLED_standard_color
 
 PLED_display_deko1:
 	rcall	PLED_display_gf				; Show GF (If GF > CF08)
@@ -1344,10 +1349,13 @@
 PLED_white_gas:
 	GETCUSTOM8	d'35'		            ;movlw	color_white	
 	goto	PLED_set_color	            ; grey out inactive gases!
+    ; return
 
 PLED_grey_gas:
+PLED_grey:
 	GETCUSTOM8	d'64'					;movlw	color_grey
 	goto	PLED_set_color	            ; grey out inactive gases!
+    ; return
 
 ;-----------------------------------------------------------------------------
 ; Display Pre-Dive Screen