# HG changeset patch # User heinrichsweikamp # Date 1311182481 -7200 # Node ID af2894e5cda48b47c109bdde1a132fde6ca9a083 # Parent f3e00f0fab3a8f3d8d967b962ff1b613478e3164 copy from amb_pressure_avg to amb_pressure for compatibility diff -r f3e00f0fab3a -r af2894e5cda4 code_part1/OSTC_code_asm_part1/sleepmode.asm --- 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 diff -r f3e00f0fab3a -r af2894e5cda4 code_part1/OSTC_code_asm_part1/start.asm --- 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