diff code_part1/OSTC_code_asm_part1/sleepmode.asm @ 153:17de42ab02b6

realtime clock defaults
author heinrichsweikamp
date Thu, 13 Jan 2011 09:05:45 +0100
parents 2907b42c195b
children d19445e0cb2f
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/sleepmode.asm	Wed Jan 12 14:38:24 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/sleepmode.asm	Thu Jan 13 09:05:45 2011 +0100
@@ -51,6 +51,7 @@
 	btfss	sleepmode				; wake up? (This bit will be set in other routines)
 	goto	restart					; yes
 	nop
+	btfss	nsm
 	sleep							; Sleep until Timer1 will wake up the device
 	nop	
 	bra		sleeploop_loop			; do loop until someting happens