comparison code_part1/OSTC_code_asm_part1/sleepmode.asm @ 497:06db5dd9149f

show numeric _and_ graphic velocity, move desat, nofly and interval into isr
author heinrichsweikamp
date Wed, 09 Nov 2011 16:17:11 +0100
parents af2894e5cda4
children bab5a9fc1b10
comparison
equal deleted inserted replaced
496:97d3f5537b43 497:06db5dd9149f
60 onemin_sleep: 60 onemin_sleep:
61 call get_battery_voltage ; get battery voltage 61 call get_battery_voltage ; get battery voltage
62 btfsc enter_error_sleep ; Enter Fatal Error Routine? 62 btfsc enter_error_sleep ; Enter Fatal Error Routine?
63 call fatal_error_sleep ; Yes (In Sleepmode_vxx.asm!) 63 call fatal_error_sleep ; Yes (In Sleepmode_vxx.asm!)
64 64
65 call calc_surface_interval ; Increases Surface-Interval time
66 call nofly_timeout60 ; check for no fly time
67
68 ;---- adjust airpressure compensation any 15 minutes 65 ;---- adjust airpressure compensation any 15 minutes
69 incf divemins+1,F ; counts to 14... 66 incf divemins+1,F ; counts to 14...
70 movlw d'14' 67 movlw d'14'
71 cpfsgt divemins+1 68 cpfsgt divemins+1
72 bra onemin_sleep2 ; 15 minutes not done! 69 bra onemin_sleep2 ; 15 minutes not done!