diff code_part1/OSTC_code_asm_part1/customview.asm @ 277:46d1012d096a

Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
author heinrichsweikamp
date Mon, 18 Apr 2011 10:23:22 +0200
parents a728b4a1b660
children 4e43476b5a63
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/customview.asm	Mon Apr 18 01:19:06 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/customview.asm	Mon Apr 18 10:23:22 2011 +0200
@@ -28,7 +28,7 @@
 ; Show the customview-dependent entry for the divemode menu
 ;
 customview_menu_entry3:		
-	bcf		menu3_active	;=1: menu entry three in divemode menu is active
+;	bcf		menu3_active	;=1: menu entry three in divemode menu is active
 
 	movff	menupos3,WREG	            ; copy
 	dcfsnz	WREG,F
@@ -43,12 +43,12 @@
 	return
 
 customview_menu3_stopwatch:
-	bsf		menu3_active                ; Set Flag
+;	bsf		menu3_active                ; Set Flag
 	DISPLAYTEXT	.33                     ; ResetAvr
 	return
 
 customview_menu3_marker:
-	bsf		menu3_active                ; Set Flag
+;	bsf		menu3_active                ; Set Flag
 	DISPLAYTEXT	.30                     ; Set Marker
 	return
 
@@ -148,7 +148,8 @@
 ;=============================================================================
 ; Yes, show next customview (and delete this flag)
 
-customview_toggle:		
+customview_toggle:
+	bcf		menu3_active	;=1: menu entry three in divemode menu is active		
 	ostc_debug	'X'		; Sends debug-information to screen if debugmode active
 	
 	btfsc	FLAG_apnoe_mode					; In Apnoe mode?
@@ -190,6 +191,7 @@
 	bra			customview_toggle		; No, use next Customview
 
 	call	PLED_stopwatch_show			; Init Stopwatch display
+	bsf		menu3_active                ; Set Flag
 	bra		customview_toggle_exit	
 
 customview_init_marker:					; Init Marker
@@ -199,6 +201,7 @@
 
     call        PLED_standard_color
 	DISPLAYTEXT d'151'				    ; Set Marker?
+	bsf			menu3_active                ; Set Flag
 	bra		    customview_toggle_exit	
 
 customview_init_clock:					; Init Clock