# HG changeset patch
# User Heinrichsweikamp
# Date 1308083484 -7200
# Node ID 620c95e23e328180dcb48231e6ab3f39a39a5229
# Parent  cf1023a53d0c984ffbbe9d49e07a5908d635ba5d
fixing random desat time after update

diff -r cf1023a53d0c -r 620c95e23e32 code_part1/OSTC_code_asm_part1/start.asm
--- 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