Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/adc_rtc.asm @ 723:6fd9a9feca91
fix minor issue in rtc_init
author | heinrichsweikamp |
---|---|
date | Mon, 27 May 2013 20:23:25 +0200 |
parents | 4452837aff37 |
children | 71e88ee8bbf2 |
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