ae6e03d67e
Do not force values but print error message a compile time
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
#pragma once
|
|
#include "config_device.h"
|
|
|
|
/* DO NOT CHANGE THIS FILE */
|
|
/* Contains values that SHOULD be defined to have the sketch working */
|
|
/* Modify value in config_device.h instead */
|
|
|
|
#ifndef CONFIG_WEB_DELAY_MS
|
|
#define CONFIG_WEB_DELAY_MS 100
|
|
#endif
|
|
|
|
#ifndef CONFIG_SAMPLING_PERIODE_MS
|
|
#define CONFIG_SAMPLING_PERIODE_MS 60000
|
|
#endif
|
|
|
|
#if defined(CONFIG_ENABLE_BMP180) && !defined(CONFIG_BMP180_SDA)
|
|
#error "When enabling BMP180, you should configure SDA pin"
|
|
#endif
|
|
|
|
#if defined(CONFIG_ENABLE_BMP180) && !defined(CONFIG_BMP180_SCL)
|
|
#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
|
|
|
|
#ifndef CONFIG_SSID_NAME
|
|
#define CONFIG_SSID_NAME "ESPConfigurator"
|
|
#endif
|
|
|
|
#ifndef CONFIG_MQTT_CONTROLLED_GPIO
|
|
#define CONFIG_MQTT_CONTROLLED_GPIO {}
|
|
#endif
|
|
|
|
#ifndef CONFIG_EEPROM_SIZE
|
|
#define CONFIG_EEPROM_SIZE 256
|
|
#endif
|