File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ static void turnOffPWM(uint8_t pin)
106
106
// check, if TCA is set to Port B (default megaavr-PWM ports)
107
107
// see variants/nona4809/variant.c line 13
108
108
if (!(PORTMUX_TCAROUTEA == PORTMUX_TCA0_PORTB_gc ))
109
- return ;
109
+ break ;
110
110
/* Bit position will give output channel */
111
111
bit_pos = digitalPinToBitPosition (pin );
112
112
@@ -120,12 +120,12 @@ static void turnOffPWM(uint8_t pin)
120
120
// check, if TCB0 is set to alternate mode PF4 (Pin D6) (default megaavr-PWM)
121
121
// see variants/nona4809/variant.c line 31
122
122
if ((pin == 6 ) && ((PORTMUX_TCBROUTEA & PORTMUX_TCB0_bm ) != PORTMUX_TCB0_bm ))
123
- return ;
123
+ break ;
124
124
case TIMERB1 :
125
125
// check, if TCB1 is set to alternate mode PF5 (Pin D3) (default megaavr-PWM)
126
126
// see variants/nona4809/variant.c line 36
127
127
if ((pin == 3 ) && ((PORTMUX_TCBROUTEA & PORTMUX_TCB1_bm ) != PORTMUX_TCB1_bm ))
128
- return ;
128
+ break ;
129
129
case TIMERB2 :
130
130
case TIMERB3 :
131
131
You can’t perform that action at this time.
0 commit comments