comparison code_part1/OSTC_code_asm_part1/sleepmode.asm @ 213:d19445e0cb2f

BUGFIX Altimeter reset when exiting sleep mode (bug#&6).
author JeanDo
date Wed, 23 Feb 2011 00:18:41 +0100
parents 17de42ab02b6
children f0cba9cff25c
comparison
equal deleted inserted replaced
212:275befc5f39d 213:d19445e0cb2f
167 bcf switch_left 167 bcf switch_left
168 bcf T0CON,TMR0ON ; Stop Timer 0 168 bcf T0CON,TMR0ON ; Stop Timer 0
169 bcf sleepmode ; wake up! 169 bcf sleepmode ; wake up!
170 bsf show_startup_screen ; 170 bsf show_startup_screen ;
171 171
172 ; Reset altimeter, so next averaging starts right over... 172 ; Restart altimeter averaging, so next averaging starts right over...
173 call altimeter_reset 173 call altimeter_restart
174 174
175 return 175 return
176 176
177 pressuretest_sleep_fast: ; Get pressure without averaging (Faster to save some power in sleep mode) 177 pressuretest_sleep_fast: ; Get pressure without averaging (Faster to save some power in sleep mode)
178 call get_temperature_start ; and start temperature integration (73,5us) 178 call get_temperature_start ; and start temperature integration (73,5us)