diff src/customview.asm @ 482:c0ee33f1f399

New customview #12 for PSCR mode shows ppO2, O2 drop and lung ratio
author heinrichsweikamp
date Tue, 07 Feb 2017 12:15:12 +0100
parents 7c10557c248e
children 18e047102e49
line wrap: on
line diff
--- a/src/customview.asm	Mon Feb 06 17:24:05 2017 +0100
+++ b/src/customview.asm	Tue Feb 07 12:15:12 2017 +0100
@@ -52,6 +52,9 @@
 	goto    TFT_sensor_check                ; Show ppO2 of O2 and Diluent ; and return
 	dcfsnz	WREG,F
 	goto	TFT_ppo2_ead_end_cns            ; Show ppO2, END/EAD and CNS; and return
+	dcfsnz	WREG,F
+	goto	TFT_pscr_info			; Show ppO2, drop and lung ratio; and return
+
 	; Menupos3=0, do nothing
 	return
 
@@ -345,7 +348,7 @@
 customview_toggle:
 	bcf		switch_right
 	incf	menupos3,F			            ; Number of customview to show
-	movlw	d'11'							; Max number of customsviews in divemode
+	movlw	d'12'							; Max number of customsviews in divemode
 	cpfsgt	menupos3			            ; Max reached?
 	bra		customview_mask		            ; No, show
 customview_toggle_reset:					; Timeout occured
@@ -379,6 +382,8 @@
 	bra		customview_init_view10          ; Sensor check
 	dcfsnz	WREG,F
 	bra		customview_init_view11          ; ppO2, END/EAD and CNS
+	dcfsnz	WREG,F
+	bra		customview_init_view12          ; PSCR Info
 
 customview_init_nocustomview:
     call    I2C_sleep_accelerometer         ; Stop accelerometer
@@ -516,6 +521,14 @@
     call    TFT_ppo2_ead_end_cns_mask       ; Show ppO2, END/EAD and CNS mask
     call    TFT_ppo2_ead_end_cns            ; Show ppO2, END/EAD and CNS
     bra		customview_toggle_exit
+
+customview_init_view12:		            ; PSCR Info    
+    btfss   FLAG_pscr_mode		    ; In PSCR mode?
+    bra	    customview_toggle		    ; No, Call next view...
+    
+    call    TFT_pscr_info_mask		    ; Show ppO2, drop and lung ratio
+    call    TFT_pscr_info		    ; Show ppO2, drop and lung ratio
+    bra		customview_toggle_exit
     
 customview_toggle_exit:
 	call	TFT_standard_color