Skip to content

NO_CORRECTION define is used for two different purposes #1263

Closed

Description

@ben-xo

I noticed that NO_CORRECTION is used both here and here for different purposes.

The first one is to turn off clock-correction in AVR (which you might want to do if you have got interrupts working) and the second is for color-correction.

Given that this is a compatibility break I'd suggest renaming both defines (NO_COLOR_CORRECTION / NO_CLOCK_CORRECTION) and checking both the new name and the old name NO_CORRECTION (or maybe print out a warning)

Activity

  1. kriegsman commented on Jul 29, 2021

    @kriegsman
    Member

    Finding this is a good catch; thank you.
    I like the idea of checking both the new and old name. I don't think a warning would be net-helpful; the people who need to separately control the two settings will figure it out, and the people who don't need to do that probably shouldn't be bothered with a new warning on their existing code. But: I want to think about that a little bit, because in general I do like giving informative warnings to people who might will benefit from seeing them.

  2. ben-xo commented on Jul 29, 2021

    @ben-xo
    ContributorAuthor

    @kriegsman is there a project chat / IRC / Slack / whatever? I know the reddit, but that doesn't seem like a chat venue for project discussion

  3. ben-xo commented on Aug 1, 2021

    @ben-xo
    ContributorAuthor

    Raised a PR for this. #1271

  4. ben-xo commented on Jan 13, 2022

    @ben-xo
    ContributorAuthor

    Closed as my PR was merged

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions