Fix needed CONFIG_ when surrounding CONFIG is not defined
This commit is contained in:
parent
3eb9298cb1
commit
5c8ab4ce97
@ -15,14 +15,20 @@
|
|||||||
|
|
||||||
#if defined(CONFIG_ENABLE_BMP180) && !defined(CONFIG_BMP180_SDA)
|
#if defined(CONFIG_ENABLE_BMP180) && !defined(CONFIG_BMP180_SDA)
|
||||||
#error "When enabling BMP180, you should configure SDA pin"
|
#error "When enabling BMP180, you should configure SDA pin"
|
||||||
|
#elif !defined(CONFIG_ENABLE_BMP180)
|
||||||
|
#define CONFIG_BMP180_SDA 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_ENABLE_BMP180) && !defined(CONFIG_BMP180_SCL)
|
#if defined(CONFIG_ENABLE_BMP180) && !defined(CONFIG_BMP180_SCL)
|
||||||
#error "When enabling BMP180, you should configure SLC pin"
|
#error "When enabling BMP180, you should configure SLC pin"
|
||||||
|
#elif !defined(CONFIG_ENABLE_BMP180)
|
||||||
|
#define CONFIG_BMP180_SCL 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_ENABLE_DHT) && !defined(CONFIG_DHT_PIN)
|
#if defined(CONFIG_ENABLE_DHT) && !defined(CONFIG_DHT_PIN)
|
||||||
#error "When enabling DHT, you should configure SDA pin"
|
#error "When enabling DHT, you should configure SDA pin"
|
||||||
|
#elif !defined(CONFIG_ENABLE_DHT)
|
||||||
|
#define CONFIG_DHT_PIN 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_SSID_NAME
|
#ifndef CONFIG_SSID_NAME
|
||||||
|
Loading…
Reference in New Issue
Block a user