diff src/sleepmode.asm @ 120:e2f04bb2539c

battery check in sleep
author heinrichsweikamp
date Fri, 27 Jun 2014 15:52:43 +0200
parents ec4d8503ec45
children d519e24ef990
line wrap: on
line diff
--- a/src/sleepmode.asm	Fri Jun 27 10:44:06 2014 +0200
+++ b/src/sleepmode.asm	Fri Jun 27 15:52:43 2014 +0200
@@ -116,6 +116,9 @@
 	return
 
 onesec_sleep:
+    btfss   c3_hardware
+    call    get_battery_voltage     ; Check for charger
+
 	incf	divemins+0,F 			; counts to #test_pressure_in_sleep (5)
 	movlw	d'5'
 	cpfsgt	divemins+0				; here: temp variable