Fixed SL bug.
This commit is contained in:
parent
e31bef31ad
commit
9e1021efbe
@ -1524,16 +1524,16 @@ void setPwmFrequency(uint8_t pin, int val)
|
|||||||
#if defined(TCCR0A)
|
#if defined(TCCR0A)
|
||||||
case TIMER0A:
|
case TIMER0A:
|
||||||
case TIMER0B:
|
case TIMER0B:
|
||||||
TCCR0B &= ~(CS00 | CS01 | CS02);
|
// TCCR0B &= ~(CS00 | CS01 | CS02);
|
||||||
TCCR0B |= val;
|
// TCCR0B |= val;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(TCCR1A)
|
#if defined(TCCR1A)
|
||||||
case TIMER1A:
|
case TIMER1A:
|
||||||
case TIMER1B:
|
case TIMER1B:
|
||||||
TCCR1B &= ~(CS10 | CS11 | CS12);
|
// TCCR1B &= ~(CS10 | CS11 | CS12);
|
||||||
TCCR1B |= val;
|
// TCCR1B |= val;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user