Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.0 KiB

6 years ago
  1. #pragma once
  2. //------------------------------------------------------------------------------
  3. // Do not change this file unless you know what you are doing
  4. // Configuration settings are in the settings.h file
  5. //------------------------------------------------------------------------------
  6. #if DEBUG_TELNET_SUPPORT
  7. #undef TELNET_SUPPORT
  8. #define TELNET_SUPPORT 1
  9. #endif
  10. #ifndef DEBUG_WEB_SUPPORT
  11. #define DEBUG_WEB_SUPPORT WEB_SUPPORT // Enable web debug log if web is enabled too
  12. #endif
  13. #if DEBUG_WEB_SUPPORT
  14. #undef WEB_SUPPORT
  15. #define WEB_SUPPORT 1 // Chicken and egg :)
  16. #endif
  17. #if not WEB_SUPPORT
  18. #undef SSDP_SUPPORT
  19. #define SSDP_SUPPORT 0 // SSDP support requires web support
  20. #endif
  21. #if UART_MQTT_SUPPORT
  22. #define MQTT_SUPPORT 1
  23. #undef TERMINAL_SUPPORT
  24. #define TERMINAL_SUPPORT 0
  25. #undef DEBUG_SERIAL_SUPPORT
  26. #define DEBUG_SERIAL_SUPPORT 0
  27. #endif
  28. #if DOMOTICZ_SUPPORT
  29. #undef MQTT_SUPPORT
  30. #define MQTT_SUPPORT 1 // If Domoticz enabled enable MQTT
  31. #endif
  32. #if HOMEASSISTANT_SUPPORT
  33. #undef MQTT_SUPPORT
  34. #define MQTT_SUPPORT 1 // If Home Assistant enabled enable MQTT
  35. #endif
  36. #ifndef ASYNC_TCP_SSL_ENABLED
  37. #if THINGSPEAK_USE_SSL && THINGSPEAK_USE_ASYNC
  38. #undef THINGSPEAK_SUPPORT // Thingspeak in ASYNC mode requires ASYNC_TCP_SSL_ENABLED
  39. #endif
  40. #endif
  41. #if SCHEDULER_SUPPORT
  42. #undef NTP_SUPPORT
  43. #define NTP_SUPPORT 1 // Scheduler needs NTP
  44. #endif
  45. //------------------------------------------------------------------------------
  46. // Sensors
  47. //------------------------------------------------------------------------------
  48. #if ANALOG_SUPPORT
  49. #undef ADC_VCC_ENABLED
  50. #define ADC_VCC_ENABLED 0
  51. #endif
  52. #if EMON_ANALOG_SUPPORT
  53. #undef ADC_VCC_ENABLED
  54. #define ADC_VCC_ENABLED 0
  55. #endif
  56. // I2C dependencies moved to actual sensor files.
  57. //------------------------------------------------------------------------------