changeset 453:38b38b105782

compute desat based on 30min old surface pressure
author heinrichsweikamp
date Mon, 22 Aug 2011 17:36:30 +0200
parents 05ec97e106da
children 69f1f3a1c645
files code_part1/OSTC_code_asm_part1/definitions.asm code_part1/OSTC_code_asm_part1/divemode.asm code_part1/OSTC_code_asm_part1/surfmode.asm
diffstat 3 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/definitions.asm	Fri Aug 19 00:56:27 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/definitions.asm	Mon Aug 22 17:36:30 2011 +0200
@@ -97,8 +97,8 @@
 
 ;=============================================================================
 
-#include "../OSTC_code_c_part2/shared_definitions.h"
-;#include "shared_definitions.h"
+;#include "../OSTC_code_c_part2/shared_definitions.h"
+#include "shared_definitions.h"
 
 ;=============================================================================
 ; Reserve space for C-code data space. Eg.when calling log.
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Fri Aug 19 00:56:27 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Mon Aug 22 17:36:30 2011 +0200
@@ -1116,7 +1116,7 @@
 	ostc_debug	'G'		; Sends debug-information to screen if debugmode active
 	call	deco_calc_desaturation_time ; calculate desaturation time
 	movlb	b'00000001'                 ; select ram bank 1
-    call	calc_deko_surfmode			; work-around for nofly bug
+    call	calc_deko_surfmode2			; work-around for nofly bug
 	rcall	calculate_noflytime         ; Calc NoFly time
 	ostc_debug	'H'                     ; Sends debug-information to screen if debugmode active
 										; store header and ...
--- a/code_part1/OSTC_code_asm_part1/surfmode.asm	Fri Aug 19 00:56:27 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/surfmode.asm	Mon Aug 22 17:36:30 2011 +0200
@@ -278,6 +278,7 @@
 
 	movff	last_surfpressure+0,int_I_pres_surface+0	; copy surface air pressure to deco routine
 	movff	last_surfpressure+1,int_I_pres_surface+1		
+calc_deko_surfmode2:
 	clrf	WREG                        ; Use as buffer
 	movff	WREG,char_I_He_ratio        ; No He at the Surface
 	movlw	d'79'                       ; 79% N2