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:
authorDaniel Garcia <danielgarcia@gmail.com>2016-05-23 00:43:56 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2016-05-23 00:43:56 +0300
commit1b546b31896dd2c4d95c16bb17c852b3d8177eb1 (patch)
tree06db86bf6cbdf2ef4c4d7e6b42efb66442db5877
parentbaceb63c180d0947a4d505e6458c437f7097bd6d (diff)
Hey, rfduino was never printing out #warning messages, so when i changed to #pragma message, discovered a place where we were putting out a message/warning where we shouldn't have
-rw-r--r--fastspi.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/fastspi.h b/fastspi.h
index f720b477..8e2a593b 100644
--- a/fastspi.h
+++ b/fastspi.h
@@ -105,7 +105,7 @@ class SPIOutput<SPI_UART1_DATA, SPI_UART1_CLOCK, SPI_SPEED> : public AVRUSART1SP
#endif
#else
-# if !defined(FASTLED_INTERNAL)
+# if !defined(FASTLED_INTERNAL) && !defined(FASTLED_ALL_PINS_HARDWARE_SPI)
# ifdef FASTLED_HAS_PRAGMA_MESSAGE
# pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
# else
@@ -120,7 +120,13 @@ class SPIOutput<SPI_UART1_DATA, SPI_UART1_CLOCK, SPI_SPEED> : public AVRUSART1SP
// #endif
#else
-#warning "Forcing software SPI - no hardware SPI for you!"
+# if !defined(FASTLED_INTERNAL) && !defined(FASTLED_ALL_PINS_HARDWARE_SPI)
+# ifdef FASTLED_HAS_PRAGMA_MESSAGE
+# pragma message "Forcing software SPI - no hardware SPI for you!"
+# else
+# warning "Forcing software SPI - no hardware SPI for you!"
+# endif
+# endif
#endif
FASTLED_NAMESPACE_END