diff code_part1/OSTC_code_asm_part1/customview.asm @ 134:48f12271eb18

divingmode graphs small fix in altimeter menu
author heinrichsweikamp
date Wed, 05 Jan 2011 12:40:06 +0100
parents 35567a646fe5
children e6aa4a74c3c2
line wrap: on
line diff
--- 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: