We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b00d94 commit 2b163ccCopy full SHA for 2b163cc
ports/raspberrypi/common-hal/pwmio/PWMOut.c
@@ -164,7 +164,7 @@ void common_hal_pwmio_pwmout_deinit(pwmio_pwmout_obj_t* self) {
164
uint32_t channel_mask = _mask(self->slice, self->channel);
165
channel_use &= ~channel_mask;
166
never_reset_channel &= ~channel_mask;
167
- uint32_t slice_mask = ((1 << CHANNELS_PER_SLICE) - 1) << (self->slice * CHANNELS_PER_SLICE + self->channel);
+ uint32_t slice_mask = ((1 << CHANNELS_PER_SLICE) - 1) << (self->slice * CHANNELS_PER_SLICE);
168
if ((channel_use & slice_mask) == 0) {
169
target_slice_frequencies[self->slice] = 0;
170
slice_variable_frequency &= ~(1 << self->slice);
0 commit comments