diff options
author | Mark Kriegsman <1334634+kriegsman@users.noreply.github.com> | 2020-01-29 00:38:08 +0300 |
---|---|---|
committer | Mark Kriegsman <1334634+kriegsman@users.noreply.github.com> | 2020-01-29 00:38:08 +0300 |
commit | 9c5e2ed3515b04ef3506dd19ffd51f37aeeea74c (patch) | |
tree | 34011ba9026ede16637d5ebf3a767d5506bb47d3 | |
parent | 698271e010c1d81885c91149caaf53a0c38f41c7 (diff) |
Explicitly check for __AVR__ before including AVR code. Give a more meaningful error message if the platform is not recognized.
-rw-r--r-- | led_sysdefs.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/led_sysdefs.h b/led_sysdefs.h index 27da24a0..04afef9a 100644 --- a/led_sysdefs.h +++ b/led_sysdefs.h @@ -32,9 +32,22 @@ #include "platforms/esp/8266/led_sysdefs_esp8266.h" #elif defined(ESP32) #include "platforms/esp/32/led_sysdefs_esp32.h" -#else +#elif defined(__AVR__) // AVR platforms #include "platforms/avr/led_sysdefs_avr.h" +#else +// +// We got here because we don't recognize the platform that you're +// trying to compile for: it's not AVR, or an ESP or ARM that we recognize. +// +// If you're reading this because you got the error below, +// and if this new platform is just a minor variant of an +// existing supported ARM platform, you may be able to add +// a new 'defined(XXX)' selector in the apporpriate code above. +// +// If this platform is a new microcontroller, see "PORTING.md". +// +#error "This platform isn't recognized by FastLED... yet. See comments in FastLED/led_sysdefs.h for options." #endif #ifndef FASTLED_NAMESPACE_BEGIN |