comparison code_part1/OSTC_code_asm_part1/sleepmode.asm @ 421:af2894e5cda4

copy from amb_pressure_avg to amb_pressure for compatibility
author heinrichsweikamp
date Wed, 20 Jul 2011 19:21:21 +0200
parents ab962c4b19d6
children 06db5dd9149f
comparison
equal deleted inserted replaced
420:f3e00f0fab3a 421:af2894e5cda4
130 cpfsgt divemins+0 ; here: temp variable 130 cpfsgt divemins+0 ; here: temp variable
131 bra onesec_sleep1 ; #test_pressure_in_sleep not done yet 131 bra onesec_sleep1 ; #test_pressure_in_sleep not done yet
132 clrf divemins+0 132 clrf divemins+0
133 133
134 rcall pressuretest_sleep_fast ; Gets pressure without averaging (faster!) 134 rcall pressuretest_sleep_fast ; Gets pressure without averaging (faster!)
135 SAFE_2BYTE_COPY amb_pressure_avg, amb_pressure ; copy for compatibility
135 136
136 ; compare current ambient pressure with threshold CF6==1160mbar. 137 ; compare current ambient pressure with threshold CF6==1160mbar.
137 GETCUSTOM15 d'6' ; loads pressure threshold into lo,hi 138 GETCUSTOM15 d'6' ; loads pressure threshold into lo,hi
138 movff lo,sub_a+0 ; power on if ambient pressure is greater threshold 139 movff lo,sub_a+0 ; power on if ambient pressure is greater threshold
139 movff hi,sub_a+1 140 movff hi,sub_a+1