diff src/tft_outputs.asm @ 326:d21b172d5a7a new_screen_layout

VSIbar #4: VSI settings submenu, graph option, logbook offset and compass calib. menu exit fix
author Janos Kovacs <kovjanos@gmail.com>
date Sat, 13 Jun 2015 22:53:05 +0200
parents 8b70dd8d9904
children bd7f4c1bdb33
line wrap: on
line diff
--- a/src/tft_outputs.asm	Sat Jun 13 22:54:37 2015 +0200
+++ b/src/tft_outputs.asm	Sat Jun 13 22:53:05 2015 +0200
@@ -990,6 +990,10 @@
     btfss   neg_flag_velocity
     bra     TFT_velocity_VSIbar_desc
     call    TFT_velocity_VSIbar_desc_clr
+
+    TSTOSS  opt_vsigraph			; 0=skip, 1=draw
+    return
+
     btfsc   velocity_warn
     bra     TFT_velocity_VSIbar_warn
     ; if all ok or attention, use attn's values
@@ -1103,6 +1107,10 @@
 TFT_velocity_VSIbar_desc:
     ; clear the ascend part of the bar
     call    TFT_velocity_VSIbar_clr
+
+    TSTOSS  opt_vsigraph			; 0=skip, 1=draw
+    return
+
     ; divA+0=0 is descend, clear everything if it's actually zero
     movlw   .0
     cpfsgt  divA+0
@@ -4089,6 +4097,12 @@
 	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]