From 5c8ab4ce976822b8ad00376e55c2bef982055737 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Thu, 14 Apr 2016 01:16:19 +0200 Subject: [PATCH] Fix needed CONFIG_ when surrounding CONFIG is not defined --- WifiControlSensor/config.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/WifiControlSensor/config.h b/WifiControlSensor/config.h index 335be64..8f612b0 100644 --- a/WifiControlSensor/config.h +++ b/WifiControlSensor/config.h @@ -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