changeset 421:af2894e5cda4

copy from amb_pressure_avg to amb_pressure for compatibility
author heinrichsweikamp
date Wed, 20 Jul 2011 19:21:21 +0200
parents f3e00f0fab3a
children 193520542496
files code_part1/OSTC_code_asm_part1/sleepmode.asm code_part1/OSTC_code_asm_part1/start.asm
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/sleepmode.asm	Wed Jul 20 15:44:35 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/sleepmode.asm	Wed Jul 20 19:21:21 2011 +0200
@@ -132,6 +132,7 @@
 	clrf	divemins+0
 
 	rcall	pressuretest_sleep_fast	; Gets pressure without averaging (faster!)
+    SAFE_2BYTE_COPY amb_pressure_avg, amb_pressure	; copy for compatibility
 
         ; compare current ambient pressure with threshold CF6==1160mbar.
 	GETCUSTOM15	d'6'				; loads pressure threshold into lo,hi
--- a/code_part1/OSTC_code_asm_part1/start.asm	Wed Jul 20 15:44:35 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/start.asm	Wed Jul 20 19:21:21 2011 +0200
@@ -58,6 +58,7 @@
 	bsf		sleepmode				; Routine only works in sleepmode...
 	call	pressuretest_sleep_fast	; Gets pressure without averaging (faster!)
 	bcf		sleepmode				; Normal mode again
+    SAFE_2BYTE_COPY amb_pressure_avg, amb_pressure	; copy for compatibility
 
     SAFE_2BYTE_COPY amb_pressure_avg, last_surfpressure
 	SAFE_2BYTE_COPY amb_pressure_avg, amb_pressure