Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKir Kolyshkin <kolyshkin@gmail.com>2019-02-21 06:37:25 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2019-02-21 07:20:12 +0300
commit84f68205f0222735c46a208b44b480cd618dbe67 (patch)
tree6f21012a2ba9ddc1ec51f2d217a16be8870fd411
parent3db75d4b3ac75ab8910c7e5e38bea36f78adce2e (diff)
stm32duino (Maple, Blue Pill, etc): compile fix
This fixes the infamous > (...)/FastLED/platforms/arm/stm32/led_sysdefs_arm_stm32.h:4:25: > fatal error: application.h: No such file or directory issue when compiling code for Blue Pill (STM32F1xx). The above `#include <application.h>` was initially added by commit f149084 as part of the port for the particle photon boards. While it's not entirely clear where this header is coming from, it is clear that it's not there for the usual Arduino + stm32duino. So, to fix compilation for Blue Pill, while not breaking it for particle photon, let's move the include to under `#ifdef STM32F10X_MD`, the define which the original code used. Fixes: https://github.com/FastLED/FastLED/issues/741 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
-rw-r--r--platforms/arm/stm32/led_sysdefs_arm_stm32.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/platforms/arm/stm32/led_sysdefs_arm_stm32.h b/platforms/arm/stm32/led_sysdefs_arm_stm32.h
index d22d4d4e..6b9ce7ca 100644
--- a/platforms/arm/stm32/led_sysdefs_arm_stm32.h
+++ b/platforms/arm/stm32/led_sysdefs_arm_stm32.h
@@ -1,10 +1,10 @@
#ifndef __INC_LED_SYSDEFS_ARM_SAM_H
#define __INC_LED_SYSDEFS_ARM_SAM_H
-#include <application.h>
-
#if defined(STM32F10X_MD)
+ #include <application.h>
+
#define FASTLED_NAMESPACE_BEGIN namespace NSFastLED {
#define FASTLED_NAMESPACE_END }
#define FASTLED_USING_NAMESPACE using namespace NSFastLED;