diff code_part1/OSTC_code_asm_part1/surfmode.asm @ 789:380a07e4fc15

work on new battery information output
author heinrichsweikamp
date Thu, 28 Aug 2014 16:34:55 +0200
parents 4452837aff37
children c50296c3059e
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/surfmode.asm	Mon Aug 11 12:18:48 2014 +0200
+++ b/code_part1/OSTC_code_asm_part1/surfmode.asm	Thu Aug 28 16:34:55 2014 +0200
@@ -315,6 +315,11 @@
 	bra		test_charger2				; No, add incomplete cycle!
 	
 	; Yes, store all data for complete cycle
+
+    clrf    on_time_seconds+0
+    clrf    on_time_seconds+1
+    clrf    on_time_seconds+2           ; Clear on-time counter
+
 	bcf		charge_started				; Clear flag
 	bcf		charge_done					; Clear flag
 	; Store incomplete cycles