File tree 1 file changed +2
-2
lines changed
ports/raspberrypi/common-hal/pwmio 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ pwmout_result_t common_hal_pwmio_pwmout_construct(pwmio_pwmout_obj_t* self,
107
107
if (variable_frequency ) {
108
108
return PWMOUT_ALL_TIMERS_ON_PIN_IN_USE ;
109
109
}
110
- // If the other user wants to change frequency then we can't share either.
110
+ // If the other user wants a variable frequency then we can't share either.
111
111
if ((slice_fixed_frequency & (1 << slice )) != 0 ) {
112
112
return PWMOUT_ALL_TIMERS_ON_PIN_IN_USE ;
113
113
}
@@ -119,7 +119,7 @@ pwmout_result_t common_hal_pwmio_pwmout_construct(pwmio_pwmout_obj_t* self,
119
119
self -> slice = slice ;
120
120
self -> channel = channel ;
121
121
channel_use |= channel_use_mask ;
122
- if (! variable_frequency ) {
122
+ if (variable_frequency ) {
123
123
slice_fixed_frequency |= 1 << slice ;
124
124
}
125
125
You can’t perform that action at this time.
0 commit comments