diff src/divemode.asm @ 148:022b886eddaf

some cleanup
author heinrichsweikamp
date Wed, 06 Aug 2014 17:38:31 +0200
parents e3ac5b2021bc
children 19ad15f04f60
line wrap: on
line diff
--- a/src/divemode.asm	Wed Aug 06 11:59:04 2014 +0200
+++ b/src/divemode.asm	Wed Aug 06 17:38:31 2014 +0200
@@ -583,9 +583,8 @@
     endif
 	
 	bcf		divemode
-	incf	timeout_counter,F
-	movlw	d'0'
-	addwfc	timeout_counter2,F			; timeout is 15bits
+	infsnz  timeout_counter,F
+    incf    timeout_counter2,F			; timeout is 15bits
 
 	movlw	LOW		divemode_timeout
 	movwf	sub_a+0