Permalink
Browse files

ATmega8 pin handling bugfix

  • Loading branch information...
gioblu committed Feb 1, 2017
1 parent 8031bd3 commit ee2a21cb7d766e00109b13e96e92b26232b9b2c9
Showing with 1 addition and 1 deletion.
  1. +1 −1 utils/digitalWriteFast.h
@@ -98,7 +98,7 @@
#if defined(__AVR_ATmega8__)
#define __digitalPinToTimer(P) \
((P == 9 || P == 10) ? &TCCR1A : ((P == 11) ? &TCCR2 : 0))
#define __digitalPinToTimerBitP \
#define __digitalPinToTimerBit(P) \
((P == 9) ? COM1A1 : ((P == 10) ? COM1B1 : COM21))
#endif

0 comments on commit ee2a21c

Please sign in to comment.