comparison src/sleepmode.asm @ 123:d076e9c02438

add ceiling display
author heinrichsweikamp
date Sun, 29 Jun 2014 13:40:59 +0200
parents d519e24ef990
children 939f1e83c4c2
comparison
equal deleted inserted replaced
122:3e84e2a64188 123:d076e9c02438
134 SAFE_2BYTE_COPY amb_pressure, sub_b 134 SAFE_2BYTE_COPY amb_pressure, sub_b
135 call subU16 ; Is (1160mbar - averaged(amb_pressure)) < 0 ? 135 call subU16 ; Is (1160mbar - averaged(amb_pressure)) < 0 ?
136 btfsc neg_flag ; Wake up from Sleep? 136 btfsc neg_flag ; Wake up from Sleep?
137 bra onesec_sleep1a ; Yes, skip button checks, wake up! 137 bra onesec_sleep1a ; Yes, skip button checks, wake up!
138 138
139 btfsc c3_hardware
140 bra onesec_sleep1 ; No wake-up with c3 hardware
139 btfsc vusb_in ; USB plugged in? 141 btfsc vusb_in ; USB plugged in?
140 bra onesec_sleep1a ; Yes, skip button checks, wake up! 142 bra onesec_sleep1a ; Yes, skip button checks, wake up!
141 143
142 onesec_sleep1: 144 onesec_sleep1:
143 bcf onesecupdate ; all done. 145 bcf onesecupdate ; all done.
144 ; Check switches 146 ; Check switches
145 btfsc switch_left 147 btfsc switch_left