diff code_part1/OSTC_code_asm_part1/customview.asm @ 626:bab5a9fc1b10

restore last used customview in dive- and surface-mode
author heinrichsweikamp
date Sat, 11 Aug 2012 15:30:30 +0200
parents cda5b45b953f
children 3282581fe178
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/customview.asm	Thu Aug 09 09:15:26 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/customview.asm	Sat Aug 11 15:30:30 2012 +0200
@@ -190,10 +190,11 @@
 	bcf		menu3_active	            ;=1: menu entry three in divemode menu is active		
 	ostc_debug	'X'		; Sends debug-information to screen if debugmode active
 	
+	incf	menupos3,F			            ; Number of customview to show
+customview_toggle2:
 	btfsc	FLAG_apnoe_mode					; In Apnoe mode?
 	bra		customview_toggle_exit			; Yes, ignore custom view in divemode completely
 
-	incf	menupos3,F			            ; Number of customview to show
 	movlw	d'10'							; Max number
 	cpfsgt	menupos3			            ; Max reached?
 	bra		customview_mask		            ; No, show
@@ -349,6 +350,7 @@
 
 surfcustomview_toggle:
 	incf	menupos3,F			; Number of customview to show
+surfcustomview_toggle2:
 	movlw	d'4'				; Max number
 	cpfsgt	menupos3			; Max reached?
 	bra		surfcustomview_mask	; No, show