Mercurial > public > hwos_code
comparison src/sleepmode.asm @ 494:beeac8806b93
2.15 rc
author | heinrichsweikamp |
---|---|
date | Thu, 30 Mar 2017 15:08:00 +0200 |
parents | 66b9b8c082a9 |
children | 69a98f3f3b84 |
comparison
equal
deleted
inserted
replaced
493:dd84cdd6c2d2 | 494:beeac8806b93 |
---|---|
227 | 227 |
228 onesec_sleep: | 228 onesec_sleep: |
229 btfsc oneminupdate ; one minute in sleep? | 229 btfsc oneminupdate ; one minute in sleep? |
230 rcall onemin_sleep ; do oneminute tasks, e.g. calculate desaturation | 230 rcall onemin_sleep ; do oneminute tasks, e.g. calculate desaturation |
231 | 231 |
232 ; btfsc battery_gauge_available | 232 btfsc battery_gauge_available |
233 ; call get_battery_voltage ; Check for charger | 233 call get_battery_voltage ; Check for charger |
234 | 234 |
235 incf divemins+0,F ; counts to #test_pressure_in_sleep (10) | 235 incf divemins+0,F ; counts to #test_pressure_in_sleep (10) |
236 movlw d'10' | 236 movlw d'10' |
237 cpfsgt divemins+0 ; here: temp variable | 237 cpfsgt divemins+0 ; here: temp variable |
238 bra onesec_sleep1 ; #test_pressure_in_sleep not done yet | 238 bra onesec_sleep1 ; #test_pressure_in_sleep not done yet |