diff code_part1/OSTC_code_asm_part1/divemode.asm @ 722:c6d57bed1ba0

button behaviour during dive mode
author heinrichsweikamp
date Mon, 27 May 2013 11:00:32 +0200
parents 4452837aff37
children ae641bcb0d02
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Sun May 26 13:43:23 2013 +0200
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Mon May 27 11:00:32 2013 +0200
@@ -194,6 +194,8 @@
 	btfsc	menubit							; Sleep only with inactive menu...
 	bra		diveloop_loop5
 
+    bcf     T0CON,TMR0ON                    ; Stop Timer0 before sleep
+    nop
 	sleep
 	nop
 	bra		diveloop_loop					; Loop the divemode