comparison src/sleepmode.asm @ 205:618191753d2b

Preparations for 1.7
author heinrichsweikamp
date Wed, 26 Nov 2014 14:30:25 +0100
parents dcd513840c6c
children 5a4801918be9
comparison
equal deleted inserted replaced
204:93085f540746 205:618191753d2b
163 return 163 return
164 164
165 onesec_sleep1a: ; At least one button pressed or amb_pressure > wake_up_from_sleep 165 onesec_sleep1a: ; At least one button pressed or amb_pressure > wake_up_from_sleep
166 bcf INTCON,INT0IF ; Clear flag 166 bcf INTCON,INT0IF ; Clear flag
167 bcf INTCON3,INT1IF ; Clear flag 167 bcf INTCON3,INT1IF ; Clear flag
168 bcf switch_right
169 bcf switch_left
170 bcf sleepmode ; wake up! 168 bcf sleepmode ; wake up!
171 SAFE_2BYTE_COPY last_surfpressure_30min, amb_pressure ; copy for compatibility 169 SAFE_2BYTE_COPY last_surfpressure_30min, amb_pressure ; copy for compatibility
172 movlw .0 170 movlw .0
173 movff WREG,sensor_state_counter ; Reset sensor state counter 171 movff WREG,sensor_state_counter ; Reset sensor state counter
174 bcf no_sensor_int ; normal sensor interrupt mode 172 bcf no_sensor_int ; normal sensor interrupt mode