You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0.23 has changed the clock enable algorithm to use GenericPeripheralGuard. But it does not work when a PCNT is initialized in a function which return only a reference to a counter as it will drop the partially moved PCNT/Unit variables
Bug description
0.23 has changed the clock enable algorithm to use GenericPeripheralGuard. But it does not work when a PCNT is initialized in a function which return only a reference to a counter as it will drop the partially moved PCNT/Unit variables
To Reproduce
here is my function which trigger the bug
At the end, pcnt and units will be dropped and counters will be broken as the clock is now deactivated.
For now, I "fixed" the issue in my code by using the following hack:
Expected behavior
PCNT clock should be enabled as long as a reference to pcnt, unit or counter is valid.
Environment
The text was updated successfully, but these errors were encountered: