changeset 134:48f12271eb18

divingmode graphs small fix in altimeter menu
author heinrichsweikamp
date Wed, 05 Jan 2011 12:40:06 +0100
parents 35567a646fe5
children 5c8569f95d7e
files code_part1/OSTC_code_asm_part1/altimeter.asm code_part1/OSTC_code_asm_part1/customview.asm
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/altimeter.asm	Wed Jan 05 12:24:58 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/altimeter.asm	Wed Jan 05 12:40:06 2011 +0100
@@ -224,7 +224,7 @@
     	WIN_INVERT	.1	; Init new Wordprocessor	
         WIN_FONT    .0
         WIN_LEFT    .80-7*7
-        WIN_TOP     .0
+        WIN_TOP     .1
         STRCPY_PRINT "Set Altimeter:"
 
         movlw       3                   ; Start menu on line 3.
--- a/code_part1/OSTC_code_asm_part1/customview.asm	Wed Jan 05 12:24:58 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/customview.asm	Wed Jan 05 12:40:06 2011 +0100
@@ -90,7 +90,6 @@
 	return
 
 customview_1sec_graphs:                 ; Do nothing extra
-	call	PLED_tissue_saturation_graph
 	return
 
 ;=============================================================================
@@ -121,11 +120,15 @@
 	call	PLED_show_leading_tissue_2  ; Update the leading tissue
 	return
 
+customview_minute_graphs:
+	call	deco_calc_desaturation_time	; calculate desaturation time
+	movlb	b'00000001'						; select ram bank 1
+	call	PLED_tissue_saturation_graph
+	return
 
 customview_minute_marker:               ; Do nothing extra
 customview_minute_stopwatch:            ; Do nothing extra
 customview_minute_average:			; Do nothing extra
-customview_minute_graphs:
 	return
 
 ;=============================================================================
@@ -195,6 +198,8 @@
 	decfsz		WREG,F					; WREG=1?	
 	bra			customview_toggle		; No, use next Customview
 
+	call	deco_calc_desaturation_time	; calculate desaturation time
+	movlb	b'00000001'						; select ram bank 1
 	call    PLED_tissue_saturation_graph
 	bra     customview_toggle_exit	
 customview_toggle_exit: