changeset 723:6fd9a9feca91

fix minor issue in rtc_init
author heinrichsweikamp
date Mon, 27 May 2013 20:23:25 +0200
parents c6d57bed1ba0
children 03f8a8eec9ae b5ffde7e569e
files code_part1/OSTC_code_asm_part1/adc_rtc.asm
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/adc_rtc.asm	Mon May 27 11:00:32 2013 +0200
+++ b/code_part1/OSTC_code_asm_part1/adc_rtc.asm	Mon May 27 20:23:25 2013 +0200
@@ -222,9 +222,9 @@
 	bra		RTCinit2			; Reset time...
 ; Make sure day and month <> zero
 	movlw	.0
-	cpfseq	day					; =0?
+	cpfsgt	day					; =0?
 	incf	day,F				; Yes, +1
-	cpfseq	month				; =0?
+	cpfsgt	month				; =0?
 	incf	month,F				; Yes, +1
 	bsf		PIE1, TMR1IE		; Enable clock int
 	return