changeset 520:acf4776eec08

BUGFIX bank1 error, deco_calc_wo_deco done twice in start routine.
author JeanDo
date Fri, 09 Dec 2011 20:43:35 +0100
parents 154b1d1c489e
children 33abbc08f01e
files code_part1/OSTC_code_asm_part1/start.asm
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/start.asm	Tue Dec 06 18:02:18 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/start.asm	Fri Dec 09 20:43:35 2011 +0100
@@ -102,11 +102,13 @@
 	movlb   b'00000001'                     ; select ram bank 1
 
     call    divemode_check_decogases        ; Setup N2/He ratio array
+
+	call	calc_deko_surfmode				; calculate desaturation for one minute
+
 	call	deco_calc_desaturation_time     ; calculate desaturation time
 	call	deco_clear_CNS_fraction			; clear CNS
-	call	calc_deko_surfmode				; calculate desaturation every minute
-	call	deco_calc_wo_deco_step_1_min	; calculate deco in surface mode 
-	movlb	b'00000001'									; select ram bank 1
+	movlb   b'00000001'                     ; select ram bank 1
+
   	clrf	nofly_time+0	              	; Reset NoFly
   	clrf	nofly_time+1    	          	; Reset NoFly
 	bcf		nofly_active                	; Clear flag