Skip to content

Conversation

@floesche
Copy link

Arduino's millis() returns an unsigned long (see https://reference.arduino.cc/reference/en/language/functions/time/millis/). When stored in elapsed or current (uint8_t) this leads to the behavior described in #7.

Also, potentially the ctx->count might overflow at some point. Resetting it to 0 whenever the condition for the modulo operator is met, will avoid this.

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.

1 participant