# HG changeset patch
# User JeanDo
# Date 1323459815 -3600
# Node ID acf4776eec089fe49b1ca0e06b257327b0914005
# Parent  154b1d1c489ec0f1a5a0ca887a68ea40d0935639
BUGFIX bank1 error, deco_calc_wo_deco done twice in start routine.

diff -r 154b1d1c489e -r acf4776eec08 code_part1/OSTC_code_asm_part1/start.asm
--- 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