diff src/sleepmode.asm @ 501:69a98f3f3b84

minor
author heinrichsweikamp
date Mon, 22 May 2017 23:03:21 +0200
parents beeac8806b93
children b7eb98dbd800
line wrap: on
line diff
--- a/src/sleepmode.asm	Thu May 11 15:39:40 2017 +0200
+++ b/src/sleepmode.asm	Mon May 22 23:03:21 2017 +0200
@@ -58,8 +58,12 @@
         btfss   analog_switches
         bra	sleeploop_loop     ; no analog switches
 
-	bsf	power_sw1
-	bsf	power_sw2
+        bsf     power_sw1
+        btfss   power_sw1
+        bra     $-4
+        bsf     power_sw2
+        btfss   power_sw2
+        bra     $-4
 	movlw	.4				; Wait for button circuity
 	movwf	apnoe_max_pressure+0		; Used as temp
 	bcf	onesecupdate