X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=rf433ctl%2FIRremote%2FIRremote.cpp;h=00ccebf6552852d3bb5124b89e47dd92faae379a;hb=d40b5b73c1900b89761fa38d87401a762a7e32a6;hp=bb6083e660ec41fc1c9d101d4ae30eda8f400032;hpb=fcdc69a2cf4e6751fd75f6ed7504d1de114c0eb5;p=svn42.git diff --git a/rf433ctl/IRremote/IRremote.cpp b/rf433ctl/IRremote/IRremote.cpp index bb6083e..00ccebf 100644 --- a/rf433ctl/IRremote/IRremote.cpp +++ b/rf433ctl/IRremote/IRremote.cpp @@ -198,7 +198,7 @@ void IRsend::enableIROut(int khz) { TIMSK2 &= ~_BV(TOIE2); //Timer2 Overflow Interrupt pinMode(3, OUTPUT); - digitalWrite(3, LOW); // When not sending PWM, we want it low + digitalWrite(3, HIGH); // When not sending PWM, we want it low // COM2A = 00: disconnect OC2A // COM2B = 00: disconnect OC2B; to send signal set to 10: OC2B non-inverted @@ -209,7 +209,7 @@ void IRsend::enableIROut(int khz) { // The top value for the timer. The modulation frequency will be SYSCLOCK / 2 / OCR2A. OCR2A = SYSCLOCK / 2 / khz / 1000; - OCR2B = OCR2A / 3; // 33% duty cycle + OCR2B = OCR2A / 4; // 33% duty cycle } IRrecv::IRrecv(int recvpin)