diff options
author | Ben Isaacs <75862+ben-xo@users.noreply.github.com> | 2021-08-01 20:45:22 +0300 |
---|---|---|
committer | Ben Isaacs <75862+ben-xo@users.noreply.github.com> | 2021-08-01 20:45:22 +0300 |
commit | 97b296543e48dfd5ba380c497bf24eeccf5f82b9 (patch) | |
tree | 60f939e588ca5ee55db3e21365b7520f862bd326 | |
parent | 4ef987b78b7b7485934ae81e8719cbb0e280ce6e (diff) |
Fix sense of check - this warning is ONLY if you're trying to disable clock correction without also enabling interrupts
-rw-r--r-- | src/platforms/avr/clockless_trinket.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/platforms/avr/clockless_trinket.h b/src/platforms/avr/clockless_trinket.h index 4afcbe7b..45143d91 100644 --- a/src/platforms/avr/clockless_trinket.h +++ b/src/platforms/avr/clockless_trinket.h @@ -87,9 +87,10 @@ template<> __attribute__((always_inline)) inline void _dc<20>(register uint8_t & // ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -#if ((FASTLED_ALLOW_INTERRUPTS == 1) && defined(NO_CORRECTION) && (NO_CORRECTION == 1) && !(defined(NO_CLOCK_CORRECTION))) +#if ((FASTLED_ALLOW_INTERRUPTS == 0) && defined(NO_CORRECTION) && (NO_CORRECTION == 1) && !(defined(NO_CLOCK_CORRECTION))) +// we hit this if you were trying to turn off clock correction without also trying to enable interrupts. # pragma message "In older versions of FastLED defining NO_CORRECTION 1 would mistakenly turn off color correction as well as clock correction." -# pragma message "Clock correction is unnecessary with FASTLED_ALLOW_INTERRUPTS 1. define NO_CLOCK_CORRECTION 1 to fix this warning." +# pragma message "define NO_CLOCK_CORRECTION 1 to fix this warning." # define NO_CLOCK_CORRECTION 1 #endif |