Skip to content

Conversation

@fredlllll
Copy link

this is a proposed fix for the unwanted interrupt when calling start. i had no chance to test it as i didnt have this problem, but i think turning off the interrupt should work

i also added an optional argument to the setperiod function. when setting the period you usually also want to reset the timer, but when i did this i never really thought about it, so i put this argument in the function so when looking at the functions code people can see that they mightve forgotten to reset the counter.

also i think the examples dont work, as the timer isnt started, but i didnt change that.

fredlllll added 3 commits May 29, 2016 13:56
… (had some trouble cause i didnt do it after setting period, so i thought it would be nice to have it in this method)
@sebhuet
Copy link

sebhuet commented Mar 23, 2017

The trick does not work on 32u4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants