Merge pull request #2938 from DavePutz/issue2894
Add an increment to tcc_refcount to allow deinit to work correctly
This commit is contained in:
commit
ffe0e0edc3
|
@ -181,7 +181,7 @@ pwmout_result_t common_hal_pulseio_pwmout_construct(pulseio_pwmout_obj_t* self,
|
||||||
mux_position = j;
|
mux_position = j;
|
||||||
// Claim channel.
|
// Claim channel.
|
||||||
tcc_channels[timer->index] |= (1 << tcc_channel(timer));
|
tcc_channels[timer->index] |= (1 << tcc_channel(timer));
|
||||||
|
tcc_refcount[timer->index]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue