diff src/sleepmode.asm @ 448:aadfe9f2edaf

work on new battery options
author heinrichsweikamp
date Tue, 30 Aug 2016 17:26:21 +0200
parents 4389fe9673b2
children 8dfb93e80338
line wrap: on
line diff
--- a/src/sleepmode.asm	Mon Aug 29 16:26:50 2016 +0200
+++ b/src/sleepmode.asm	Tue Aug 30 17:26:21 2016 +0200
@@ -125,7 +125,7 @@
 	btfsc	oneminupdate			; one minute in sleep?
 	rcall	onemin_sleep			; do oneminute tasks, e.g. calculate desaturation
 
-    btfsc   rechargeable
+    btfsc   battery_gauge_available
     call    get_battery_voltage     ; Check for charger
 
 	incf	divemins+0,F 			; counts to #test_pressure_in_sleep (5)
@@ -145,7 +145,7 @@
 	btfsc	neg_flag				; Wake up from Sleep?
 	bra		onesec_sleep1a			; Yes, skip button checks, wake up!
 
-    btfsc   rechargeable
+    btfsc   battery_gauge_available
     bra     onesec_sleep1           ; No wake-up with cR hardware
     btfsc   vusb_in                 ; USB plugged in?
  	bra		onesec_sleep1a			; Yes, skip button checks, wake up!