comparison code_part1/OSTC_code_asm_part1/start.asm @ 380:620c95e23e32 64kByte Logbook

fixing random desat time after update
author Heinrichsweikamp
date Tue, 14 Jun 2011 22:31:24 +0200
parents 51baf8777b73
children 904863f96582
comparison
equal deleted inserted replaced
379:cf1023a53d0c 380:620c95e23e32
57 57
58 bsf sleepmode ; Routine only works in sleepmode... 58 bsf sleepmode ; Routine only works in sleepmode...
59 call pressuretest_sleep_fast ; Gets pressure without averaging (faster!) 59 call pressuretest_sleep_fast ; Gets pressure without averaging (faster!)
60 bcf sleepmode ; Normal mode again 60 bcf sleepmode ; Normal mode again
61 61
62 SAFE_2BYTE_COPY amb_pressure, last_surfpressure 62 SAFE_2BYTE_COPY amb_pressure_avg, last_surfpressure
63 SAFE_2BYTE_COPY amb_pressure_avg, amb_pressure
63 movff last_surfpressure+0,last_surfpressure_15min+0 64 movff last_surfpressure+0,last_surfpressure_15min+0
64 movff last_surfpressure+1,last_surfpressure_15min+1 65 movff last_surfpressure+1,last_surfpressure_15min+1
65 movff last_surfpressure+0,last_surfpressure_30min+0 66 movff last_surfpressure+0,last_surfpressure_30min+0
66 movff last_surfpressure+1,last_surfpressure_30min+1 ; Rests all airpressure registers 67 movff last_surfpressure+1,last_surfpressure_30min+1 ; Rests all airpressure registers
67 68