changeset 722:c6d57bed1ba0

button behaviour during dive mode
author heinrichsweikamp
date Mon, 27 May 2013 11:00:32 +0200
parents a5d44fb115a8
children 6fd9a9feca91
files code_part1/OSTC_code_asm_part1/divemode.asm
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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