Skip to content

Bugfix/duplicate define no correction - #1271

Merged
kriegsman merged 3 commits into
FastLED:masterfrom
ben-xo:bugfix/duplicate-define-NO-CORRECTION
Jan 2, 2022
Merged

kriegsman merged 3 commits into
FastLED:masterfrom
ben-xo:bugfix/duplicate-define-NO-CORRECTION

Conversation

@ben-xo

@ben-xo ben-xo commented Aug 1, 2021

Copy link
Copy Markdown
Contributor

An implementation of the solution suggested on #1263

The NO_CORRECTION define accidentally has two meanings. On clockless trinket, when combined with FASTLED_ALLOW_INTERRUPTS, it disables the clock skew correction. (with my AVR interrupts branch clock skew correction becomes unnecessary, but that's another story).

This change renames the more specific define to NO_CLOCK_CORRECTION. In configurations where it would have made a difference, NO_CORRECTION will still work the same way, but will print a helpful warning of how to fix the problem to be unambiguous.

N.B. the warning is only true if my PR #1268 is merged, otherwise it might need rewording.

ben-xo added 3 commits August 1, 2021 18:13
…ON (FastLED#1263)

The more specific use is in clockless_trinket, so this is the one which has been renamed.
It was only relevant if you also had FASTLED_ALLOW_INTERRUPTS defined.

Existing code will still work exactly the same, but in cases where this define would have altered the code, a warning is now emitted as well.
… clock correction without also enabling interrupts
@ben-xo

ben-xo commented Aug 1, 2021

Copy link
Copy Markdown
Contributor Author

Part five of the changes from my previous PR (#1265) which I'm separating out into separate pull requests, following from #1270

@kriegsman

Copy link
Copy Markdown
Member

Thanks for the contributions, @ben-xo !

@ben-xo
ben-xo deleted the bugfix/duplicate-define-NO-CORRECTION branch January 3, 2022 02:16
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