diff code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 795:d696a824682d

BUGFIX: Color of "Menu?" in divemode
author heinrichsweikamp
date Mon, 29 Sep 2014 14:56:12 +0200
parents 9eba1eb8ca38
children c50296c3059e
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode_menu.asm	Mon Sep 29 12:11:17 2014 +0200
+++ b/code_part1/OSTC_code_asm_part1/divemode_menu.asm	Mon Sep 29 14:56:12 2014 +0200
@@ -49,9 +49,11 @@
 	btfsc	FLAG_apnoe_mode			; In Apnoe mode?
 	bra		test_switches_divemode1	; Yes!
 
+	call		DISP_divemask_color	; Set Color for Divemode mask
 	WIN_INVERT		.1
 	DISPLAYTEXT	.4			;Menu?
 	WIN_INVERT		.0
+    call	DISP_standard_color
 	return
 
 test_switches_divemode0:
@@ -111,10 +113,11 @@
 	btfss	switch_right
 	return
 
+	bcf		switch_right				; Left button pressed
+
 	btfsc 	display_see_deco			; Is the Decoplan displayed?
 	bra		divemenu_see_decoplan2		; Yes, exit menu on left button press
 
-	bcf		switch_right				; Left button pressed
 	clrf	timeout_counter3			; timout_divemenu!
 	incf	menupos,F