diff src/surfmode.asm @ 232:fe9d88fee09f

show start gas in OC mode permanently
author mh@mh-THINK
date Sun, 22 Feb 2015 12:14:03 -0400
parents f6548e8f06f5
children b6edf9bb8e3b
line wrap: on
line diff
--- a/src/surfmode.asm	Sat Feb 21 20:05:57 2015 +0100
+++ b/src/surfmode.asm	Sun Feb 22 12:14:03 2015 -0400
@@ -143,6 +143,16 @@
 	call	TFT_update_surf_press		; display surface pressure
 	call	TFT_temp_surfmode			; Displays temperature
 	call	TFT_display_decotype_surface
+    movff   opt_dive_mode,lo            ; 0=OC, 1=CC, 2=Gauge, 3=Apnea
+    tstfsz  lo
+    bra     surfloop_no_oc              ; Not OC
+    WIN_TINY surf_decotype_column+.18,surf_decotype_row+.12
+    extern  get_first_gas_to_WREG,gaslist_strcat_gas
+    call    get_first_gas_to_WREG       ; Gets first gas (0-4) into WREG
+    movwf   PRODL
+    call    gaslist_strcat_gas          ; Input: PRODL : gas number (0..4), Output: Text appended into buffer pointed by FSR2.
+    STRCAT_PRINT ""
+surfloop_no_oc:
     movff   customview_surfmode,menupos3    ; Reload last customview
     call    surf_customview_mask        ; Update #menupos3 view