Mercurial > public > hwos_code
comparison src/sleepmode.asm @ 120:e2f04bb2539c
battery check in sleep
author | heinrichsweikamp |
---|---|
date | Fri, 27 Jun 2014 15:52:43 +0200 |
parents | ec4d8503ec45 |
children | d519e24ef990 |
comparison
equal
deleted
inserted
replaced
119:2acf3d068fae | 120:e2f04bb2539c |
---|---|
114 | 114 |
115 bcf oneminupdate ; all done | 115 bcf oneminupdate ; all done |
116 return | 116 return |
117 | 117 |
118 onesec_sleep: | 118 onesec_sleep: |
119 btfss c3_hardware | |
120 call get_battery_voltage ; Check for charger | |
121 | |
119 incf divemins+0,F ; counts to #test_pressure_in_sleep (5) | 122 incf divemins+0,F ; counts to #test_pressure_in_sleep (5) |
120 movlw d'5' | 123 movlw d'5' |
121 cpfsgt divemins+0 ; here: temp variable | 124 cpfsgt divemins+0 ; here: temp variable |
122 bra onesec_sleep1 ; #test_pressure_in_sleep not done yet | 125 bra onesec_sleep1 ; #test_pressure_in_sleep not done yet |
123 | 126 |