File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,8 @@ void disableSendPWMByTimer() {
408408# else
409409# if defined(USE_TIMER_CHANNEL_B)
410410void enableSendPWMByTimer () {
411- TCNT1 = 0 ; (TCCR1A |= _BV (COM1B1)) // Clear OC1A/OC1B on Compare Match when up-counting. Set OC1A/OC1B on Compare Match when downcounting.
411+ TCNT1 = 0 ;
412+ TCCR1A |= _BV (COM1B1); // Clear OC1A/OC1B on Compare Match when up-counting. Set OC1A/OC1B on Compare Match when counting down.
412413}
413414void disableSendPWMByTimer () {
414415 TCCR1A &= ~(_BV (COM1B1));
@@ -694,8 +695,13 @@ void timerConfigForReceive() {
694695# endif
695696
696697# if defined(ARDUINO_AVR_PROMICRO) // Sparkfun Pro Micro
697- void enableSendPWMByTimer () { TCNT4 = 0 ; (TCCR4A |= _BV (COM4A0)) // Use complementary OC4A output on pin 5
698- void disableSendPWMByTimer () { (TCCR4A &= ~(_BV (COM4A0))) // (Pro Micro does not map PC7 (32/ICP3/CLK0/OC4A)
698+ void enableSendPWMByTimer () {
699+ TCNT4 = 0 ;
700+ TCCR4A |= _BV (COM4A0); // Use complementary OC4A output on pin 5
701+ }
702+ void disableSendPWMByTimer () {
703+ TCCR4A &= ~(_BV (COM4A0)); // (Pro Micro does not map PC7 (32/ICP3/CLK0/OC4A)
704+ }
699705// of ATmega32U4 )
700706# else
701707void enableSendPWMByTimer () {
You can’t perform that action at this time.
0 commit comments