changeset 380:620c95e23e32 64kByte Logbook

fixing random desat time after update
author Heinrichsweikamp
date Tue, 14 Jun 2011 22:31:24 +0200
parents cf1023a53d0c
children c7142538050c
files code_part1/OSTC_code_asm_part1/start.asm
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/start.asm	Tue Jun 14 19:25:09 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/start.asm	Tue Jun 14 22:31:24 2011 +0200
@@ -59,7 +59,8 @@
 	call	pressuretest_sleep_fast	; Gets pressure without averaging (faster!)
 	bcf		sleepmode				; Normal mode again
 
-    SAFE_2BYTE_COPY amb_pressure, last_surfpressure
+    SAFE_2BYTE_COPY amb_pressure_avg, last_surfpressure
+	SAFE_2BYTE_COPY amb_pressure_avg, amb_pressure
 	movff	last_surfpressure+0,last_surfpressure_15min+0
 	movff	last_surfpressure+1,last_surfpressure_15min+1
 	movff	last_surfpressure+0,last_surfpressure_30min+0