hexagon5un / AVR-Programming

Code examples for the book "Make: AVR Programming"
http://littlehacks.org/AVR-Programming
MIT License
725 stars 340 forks source link

pwmOnAnyPin: Incorrect register bit access #36

Open athulsnair opened 5 years ago

athulsnair commented 5 years ago

I'm just writing this for clarity, In pwmOnAnyPin.c, In the initTimer0(void) function, there's this line

TIMSK0 |= ((1 << OCIE0A) | (1 << OCIE1B));

I think it is OCIE0B not OCIE1B I don't think it affect the exicution of code, both means (1 << 2)