From b743217bc6b049961dae327ede0744e07a56ec99 Mon Sep 17 00:00:00 2001 From: ukw Date: Tue, 20 Sep 2011 09:54:52 +0000 Subject: [PATCH] Version 2.0.1: corrected timer1_init for irsnd git-svn-id: svn://mikrocontroller.net/irmp@82 aeb2e35e-bfc4-4214-b83c-9e8de998ed28 --- README.txt | 4 ++-- irsndmain.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.txt b/README.txt index 213dad1..2a880df 100644 --- a/README.txt +++ b/README.txt @@ -1,8 +1,8 @@ IRMP - Infrared Multi Protocol Decoder -------------------------------------- -Version IRMP: 2.0.0-pre8 18.09.2011 -Version IRSND: 2.0.0-pre7 12.09.2011 +Version IRMP: 2.0.1 20.09.2011 +Version IRSND: 2.0.1 20.09.2011 Dokumentation: diff --git a/irsndmain.c b/irsndmain.c index ff4838c..3aab539 100644 --- a/irsndmain.c +++ b/irsndmain.c @@ -31,7 +31,7 @@ void timer1_init (void) { #if defined (__AVR_ATtiny45__) || defined (__AVR_ATtiny85__) // ATtiny45 / ATtiny85: - OCR1A = (F_CPU / F_INTERRUPTS / 4) - 1; // compare value: 1/15000 of CPU frequency, presc = 4 + OCR1C = (F_CPU / F_INTERRUPTS / 4) - 1; // compare value: 1/15000 of CPU frequency, presc = 4 TCCR1 = (1 << CTC1) | (1 << CS11) | (1 << CS10); // switch CTC Mode on, set prescaler to 4 #else // ATmegaXX: OCR1A = (F_CPU / F_INTERRUPTS) - 1; // compare value: 1/15000 of CPU frequency -- 2.39.2