# HG changeset patch
# User heinrichsweikamp
# Date 1346173301 -7200
# Node ID e755ed869a3b15bb60e2235c62f7daf35e44204b
# Parent  b4849ef906542d8404a9eb67ce5947f768c099fd
2.51beta release - remove of MPLAB 8 workspace. Use of MPLAB X IDE recommended

diff -r b4849ef90654 -r e755ed869a3b code_part1/OSTC_code_asm_part1/changelog.txt
--- a/code_part1/OSTC_code_asm_part1/changelog.txt	Mon Aug 27 08:27:06 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/changelog.txt	Tue Aug 28 19:01:41 2012 +0200
@@ -2,6 +2,7 @@
 BETA Version - Do NOT use for diving!
 NEW: Saves last selected custom view for surface mode and dive mode
 NEW: Gaslist highlights "better gas" in divemode
+NEW: Cursor is in front of the "better gas" automatically
 
 New in 2.50 Stable:
 INFO: This update will reset all Custom Functions and gases to defaults
diff -r b4849ef90654 -r e755ed869a3b code_part1/OSTC_code_asm_part1/definitions.asm
--- a/code_part1/OSTC_code_asm_part1/definitions.asm	Mon Aug 27 08:27:06 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/definitions.asm	Tue Aug 28 19:01:41 2012 +0200
@@ -22,7 +22,7 @@
 ; ToDo:
 
 #DEFINE	softwareversion_x		d'2'		; Software version  XX.YY
-#DEFINE	softwareversion_y		d'51'		; Software version  XX.YY
+#DEFINE	softwareversion_y		d'52'		; Software version  XX.YY
 
 #DEFINE softwareversion_beta 	1 			; (and 0 for release) 
 
diff -r b4849ef90654 -r e755ed869a3b code_part1/OSTC_code_asm_part1/divemode_menu.asm
--- 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
diff -r b4849ef90654 -r e755ed869a3b code_part1/sample_workspace.zip
Binary file code_part1/sample_workspace.zip has changed