Fix needed CONFIG_ when surrounding CONFIG is not defined

This commit is contained in:
Mathieu Maret 2016-04-14 01:16:19 +02:00
parent 3eb9298cb1
commit 5c8ab4ce97
1 changed files with 6 additions and 0 deletions

View File

@ -15,14 +15,20 @@
#if defined(CONFIG_ENABLE_BMP180) && !defined(CONFIG_BMP180_SDA)
#error "When enabling BMP180, you should configure SDA pin"
#elif !defined(CONFIG_ENABLE_BMP180)
#define CONFIG_BMP180_SDA 0
#endif
#if defined(CONFIG_ENABLE_BMP180) && !defined(CONFIG_BMP180_SCL)
#error "When enabling BMP180, you should configure SLC pin"
#elif !defined(CONFIG_ENABLE_BMP180)
#define CONFIG_BMP180_SCL 0
#endif
#if defined(CONFIG_ENABLE_DHT) && !defined(CONFIG_DHT_PIN)
#error "When enabling DHT, you should configure SDA pin"
#elif !defined(CONFIG_ENABLE_DHT)
#define CONFIG_DHT_PIN 0
#endif
#ifndef CONFIG_SSID_NAME