diff code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 629:e755ed869a3b

2.51beta release - remove of MPLAB 8 workspace. Use of MPLAB X IDE recommended
author heinrichsweikamp
date Tue, 28 Aug 2012 19:01:41 +0200
parents f3735da18809
children 3b50c9949b84
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode_menu.asm	Mon Aug 27 08:27:06 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/divemode_menu.asm	Tue Aug 28 19:01:41 2012 +0200
@@ -589,7 +589,10 @@
 	bsf		display_set_gas				; set flag	
 	call	PLED_clear_divemode_menu	; Clear Menu
 	call	PLED_gas_list				; Display all 5 gases
-	movlw	d'1'
+
+	movlw	d'1'						; Reset cursor
+	btfsc	better_gas_available		;=1: A better gas is available and a gas change is advised in divemode
+	movf	better_gas_number,W			; better gas 1-5
 	movwf	menupos						; reset cursor
 	call	PLED_divemenu_cursor		; update cursor
 	call	PLED_show_change_depth		; And show the first change depth