diff src/customview.asm @ 41:5041477eee79

Surface customview with important deco settings
author mh@mh-THINK
date Thu, 15 Aug 2013 15:37:34 +0200
parents e4e91fe8b09d
children 7c7d7644ca37
line wrap: on
line diff
--- a/src/customview.asm	Thu Aug 15 14:34:50 2013 +0200
+++ b/src/customview.asm	Thu Aug 15 15:37:34 2013 +0200
@@ -108,7 +108,7 @@
 surf_customview_toggle:
 	bcf		switch_right
 	incf	menupos3,F			            ; Number of customview to show
-	movlw	d'6'							; Max number of customsviews in surface mode
+	movlw	d'7'							; Max number of customsviews in surface mode
 	cpfsgt	menupos3			            ; Max reached?
 	bra		surf_customview_mask		    ; No, show
     movlw   .1
@@ -129,8 +129,10 @@
 	bra		surf_customview_init_view4      ; Custom Text
 	dcfsnz	WREG,F
 	bra		surf_customview_init_view5      ; Tissue Diagram
-	dcfsnz	WREG,F
+    dcfsnz	WREG,F
 	bra		surf_customview_init_view6      ; Compass
+    dcfsnz	WREG,F
+	bra		surf_customview_init_view7      ; Deco settings
 
     call    I2C_sleep_accelerometer         ; Stop accelerometer
     call    I2C_sleep_compass               ; Stop compass
@@ -185,7 +187,15 @@
     call    I2C_init_compass                ; Start compass
     call	TFT_surface_compass_mask        ; Show compass
     bra		customview_toggle_exit          ; Done.
-
+surf_customview_init_view7:
+    btfsc   FLAG_gauge_mode
+    bra     surf_customview_toggle
+    btfsc   FLAG_apnoe_mode
+    bra     surf_customview_toggle
+    extern  deco_setup_dive
+    call    deco_setup_dive
+    call    TFT_surface_decosettings        ; Show all deco settings
+    bra		customview_toggle_exit          ; Done.
 
     global  menuview_toggle
 menuview_toggle:            ; Show Menu or the simulator tasks