Permalink
Browse files

Hey, rfduino was never printing out #warning messages, so when i chan…

…ged to #pragma message, discovered a place where we were putting out a message/warning where we shouldn't have
  • Loading branch information...
focalintent committed May 22, 2016
1 parent baceb63 commit 1b546b31896dd2c4d95c16bb17c852b3d8177eb1
Showing with 8 additions and 2 deletions.
  1. +8 −2 fastspi.h
View
@@ -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

0 comments on commit 1b546b3

Please sign in to comment.