Skip to content
Permalink
Browse files

Fixed config define (again)

  • Loading branch information...
spacehuhn committed Nov 8, 2019
1 parent 7bdef16 commit cfee5968838b29b0d7dafeb65714496b63b0c55e
Showing with 4 additions and 4 deletions.
  1. +2 −2 atmega_duck/config.h
  2. +2 −2 esp_duck/config.h
@@ -40,7 +40,7 @@
#define DEFAULT_SLEEP 5

/*! ========== Safety Checks ========= */
#if defined(DUCKMCU) && DUCKMCU!="ATMEGA32U4"
#if defined(DUCKMCU) && !(DUCKMCU==ATMEGA32U4)
#error You're compiling for the wrong board, mate!\
Select something with an ATmega32u4 or SAMD21.
#endif /* ifdef DUCKMCU && DUCKMCU!="ATMEGA32U4" */
@@ -68,4 +68,4 @@
#error LED pin overlaps with serial bridge pins, disable serial bridge or change the LED pin!
#endif /* if defined(BRIDGE_ENABLE) && (LED_PIN==BRIDGE_RST || LED_PIN==BRIDGE_0) */

#endif /* if defined(NEOPIXEL) */
#endif /* if defined(NEOPIXEL) */
@@ -45,7 +45,7 @@
#define I2C_SCL 5
#endif /* if !defined(ENABLE_I2C) || !defined(ENABLE_SERIAL) */

#if defined(DUCKMCU) && (DUCKMCU!=ESP8266)
#if defined(DUCKMCU) && !(DUCKMCU==ESP8266)
#error You're compiling for the wrong board, mate!\
Select something with an ESP8266.
#endif /* ifdef DUCKMCU && DUCKMCU!="ATMEGA32U4" */
@@ -61,4 +61,4 @@

#if defined(ENABLE_I2C) && defined(ENABLE_SERIAL) && (I2C_SDA==1 || I2C_SDA==3 || I2C_SCL==1 || I2C_SCL==3)
#error I2C pins overlap with RX and TX pins. Disable serial debugging or change the I2C pins.
#endif /* if !defined(ENABLE_I2C) && !defined(ENABLE_I2C) */
#endif /* if !defined(ENABLE_I2C) && !defined(ENABLE_I2C) */

0 comments on commit cfee596

Please sign in to comment.
You can’t perform that action at this time.