diff src/tft_outputs.asm @ 337:508d7fb98b34

cleanup menu, add "Auto SP" option (Not working yet), minor layout change in compass menu
author heinrichsweikamp
date Sun, 28 Jun 2015 13:58:00 +0200
parents 14b466f66a7f
children 692903c50788
line wrap: on
line diff
--- a/src/tft_outputs.asm	Sun Jun 28 05:05:46 2015 +0200
+++ b/src/tft_outputs.asm	Sun Jun 28 13:58:00 2015 +0200
@@ -2332,8 +2332,9 @@
 	output_16dp d'3'
     bcf		leftbind
     STRCAT_TEXT tbar
-    TSTOSS  opt_ccr_mode                    ; =0: Fixed SP, =1: Sensor
-    bra     $+4
+    movff   opt_ccr_mode,WREG               ; =0: Fixed SP, =1: Sensor,  =2: Auto SP
+    sublw   .1                              ; opt_ccr_mode = 1 (Sensor)?
+    bnz     $+4                             ; No, skip
     PUTC    "*"
 	STRCAT_PRINT ""
     return
@@ -2362,8 +2363,9 @@
 	output_16dp d'3'
     bcf		leftbind
     STRCAT_TEXT tbar
-    TSTOSS  opt_ccr_mode                    ; =0: Fixed SP, =1: Sensor
-    bra     $+4
+    movff   opt_ccr_mode,WREG               ; =0: Fixed SP, =1: Sensor,  =2: Auto SP
+    sublw   .1                              ; opt_ccr_mode = 1 (Sensor)?
+    bnz     $+4                             ; No, skip
     PUTC    "*"
 	STRCAT_PRINT ""
 	bcf     win_invert                  ; Reset invert flag
@@ -2461,16 +2463,23 @@
     call	TFT_standard_color
 	WIN_TINY surf_decotype_column+.18,surf_decotype_row+.12
 
-    TSTOSS  opt_ccr_mode        ; =0: Fixed SP, =1: Sensor
+    TSTOSS  opt_ccr_mode        ; =0: Fixed SP, =1: Sensor,  =2: Auto SP
     bra     TFT_display_decotype_cc_fixed
-    ; Sensor mode
+    ; Sensor mode or Auto
+    movff   opt_ccr_mode,WREG
+    sublw   .2
+    bz      TFT_display_decotype_cc_auto
     STRCPY_TEXT tCCRModeSensor ; Sensor
     bra     TFT_display_decotype_cc_common
+TFT_display_decotype_cc_auto:
+    STRCPY_TEXT tCCRModeAutoSP  ; Auto SP
+    bra     TFT_display_decotype_cc_common
 TFT_display_decotype_cc_fixed:
-    STRCPY_TEXT tCCRModeFixedSP ; Fixed
+    STRCPY_TEXT tCCRModeFixedSP ; Fixed SP
 TFT_display_decotype_cc_common:
     STRCAT_PRINT ""
     bra     TFT_display_decotype_exit
+
 TFT_display_decotype_surface3:
     decfsz  lo,F
     bra     TFT_display_decotype_surface4
@@ -4121,7 +4130,7 @@
 
     call    TFT_standard_color
 	TFT_color_code		warn_ppo2		; Color-code output (ppO2 stored in xC)
-    WIN_STD  dm_custom_ceiling_ppo2_val_col, dm_custom_ceiling_value_row
+    WIN_MEDIUM  dm_custom_ceiling_ppo2_val_col, dm_custom_ceiling_value_row
     ; hijacking neg_flag_velocity to know where the value is displayed
     bsf     neg_flag_velocity
     bra     TFT_display_ppo2_com
@@ -4171,13 +4180,6 @@
 	PUTC	" "
 	return			; No "_PRINT" here...
 	
-	global	TFT_VSImenu_dynamictitle
-TFT_VSImenu_dynamictitle:
-	STRCPY_TEXT tVSItext1
-	PUTC	" "
-	return			; No "_PRINT" here...
-
-
 	global	adjust_depth_with_salinity
 adjust_depth_with_salinity:			; computes salinity setting into lo:hi [mbar]
 	btfsc	simulatormode_active	; Do apply salinity in Simulatormode