Change default config behavior
Do not force values but print error message a compile time
This commit is contained in:
parent
1bbd52a234
commit
ae6e03d67e
@ -13,15 +13,16 @@
|
|||||||
#define CONFIG_SAMPLING_PERIODE_MS 60000
|
#define CONFIG_SAMPLING_PERIODE_MS 60000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_BMP180_SDA
|
#if defined(CONFIG_ENABLE_BMP180) && !defined(CONFIG_BMP180_SDA)
|
||||||
#define CONFIG_BMP180_SDA 12
|
#error "When enabling BMP180, you should configure SDA pin"
|
||||||
#endif
|
|
||||||
#ifndef CONFIG_BMP180_SLC
|
|
||||||
#define CONFIG_BMP180_SLC 14
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_DHT_PIN
|
#if defined(CONFIG_ENABLE_BMP180) && !defined(CONFIG_BMP180_SCL)
|
||||||
#define CONFIG_DHT_PIN 2
|
#error "When enabling BMP180, you should configure SLC pin"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_ENABLE_DHT) && !defined(CONFIG_DHT_PIN)
|
||||||
|
#error "When enabling DHT, you should configure SDA pin"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_SSID_NAME
|
#ifndef CONFIG_SSID_NAME
|
||||||
@ -29,7 +30,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_MQTT_CONTROLLED_GPIO
|
#ifndef CONFIG_MQTT_CONTROLLED_GPIO
|
||||||
#define CONFIG_MQTT_CONTROLLED_GPIO {2, 13}
|
#define CONFIG_MQTT_CONTROLLED_GPIO {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_EEPROM_SIZE
|
#ifndef CONFIG_EEPROM_SIZE
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#define CONFIG_BMP180_SCL 14
|
#define CONFIG_BMP180_SCL 14
|
||||||
|
|
||||||
#define CONFIG_ENABLE_DHT
|
#define CONFIG_ENABLE_DHT
|
||||||
#define CONFIG_DHT_PIN 2
|
#define CONFIG_DHT_PIN 5
|
||||||
|
|
||||||
// Enable light sleep to save some power (http://bbs.espressif.com/viewtopic.php?f=6&t=133&p=485&hilit=sleep+modem#p485)
|
// Enable light sleep to save some power (http://bbs.espressif.com/viewtopic.php?f=6&t=133&p=485&hilit=sleep+modem#p485)
|
||||||
// Switch off internal LED
|
// Switch off internal LED
|
||||||
@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
// GPIO that can be set or get by mqtt
|
// GPIO that can be set or get by mqtt
|
||||||
// Should have less value than MAXSUBSCRIPTIONS
|
// Should have less value than MAXSUBSCRIPTIONS
|
||||||
//#define CONFIG_MQTT_CONTROLLED_GPIO {2, 13}
|
#define CONFIG_MQTT_CONTROLLED_GPIO {2,13}
|
||||||
|
|
||||||
|
|
||||||
// EEPROM SIZE
|
// EEPROM SIZE
|
||||||
|
Loading…
Reference in New Issue
Block a user