Skip to content

Change FRACT_INC from X/250 to X/256 #15

Description

@nerdralph

FRACT_INC is an 8-bit binary fraction with a denominator of 250.
https://github.com/nerdralph/ArduinoShrink/blob/master/src/millis.c#L35

Changing to 256 would slightly improve micros() precision, and simplify T0 overflow ISR, removing the need for FRACT_MAX.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions