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.

100 lines
3.2 KiB

  1. #pragma once
  2. // 1.13.3 added TELNET_PASSWORD build-only flag
  3. // 1.13.4 replaces it with TELNET_AUTHENTICATION runtime setting default
  4. // TODO warning should be removed eventually
  5. #ifdef TELNET_PASSWORD
  6. #warning TELNET_PASSWORD is deprecated! Please replace it with TELNET_AUTHENTICATION
  7. #define TELNET_AUTHENTICATION TELNET_PASSWORD
  8. #endif
  9. // 1.14.0 combines RF_SUPPORT with RFB_DIRECT
  10. #ifdef RF_PIN
  11. #warning RF_PIN is deprecated! Please use RFB_RX_PIN instead
  12. #define RFB_RX_PIN RF_PIN
  13. #endif
  14. // 1.14.0 allow multiple digitals
  15. #ifdef DIGITAL_PIN
  16. #warning DIGITAL_PIN is deprecated! Please use DIGITAL1_PIN instead
  17. #define DIGITAL1_PIN DIGITAL_PIN
  18. #endif
  19. // 1.14.0 allow multiple events
  20. #ifdef EVENTS_PIN
  21. #warning EVENTS_PIN is deprecated! Please use EVENTS1_PIN instead
  22. #define EVENTS1_PIN EVENTS_PIN
  23. #endif
  24. // 1.14.0 unifies mqtt payload options
  25. #ifdef HOMEASSISTANT_PAYLOAD_ON
  26. #warning HOMEASSISTANT_PAYLOAD_ON is deprecated! Global RELAY_MQTT_ON is used instead
  27. #endif
  28. #ifdef HOMEASSISTANT_PAYLOAD_OFF
  29. #warning HOMEASSISTANT_PAYLOAD_OFF is deprecated! Global RELAY_MQTT_OFF is used instead
  30. #endif
  31. #ifdef HOMEASSISTANT_PAYLOAD_AVAILABLE
  32. #warning HOMEASSISTANT_PAYLOAD_AVAILABLE is deprecated! Global MQTT_STATUS_ONLINE is used instead
  33. #endif
  34. #ifdef HOMEASSISTANT_PAYLOAD_NOT_AVAILABLE
  35. #warning HOMEASSISTANT_PAYLOAD_NOT_AVAILABLE is deprecated! Global MQTT_STATUS_OFFLINE is used instead
  36. #endif
  37. // 1.14.0 adds SecureClient
  38. #if MQTT_SUPPORT && MQTT_LIBRARY == MQTT_LIBRARY_ASYNCMQTT_CLIENT && ASYNC_TCP_SSL_ENABLED
  39. #warning "Current implementation of AsyncMqttClient with axTLS is no longer supported. Consider switching to the SECURE_CLIENT configuration with MQTT_LIBRARY_ARDUINOMQTT or MQTT_LIBRARY_PUBSUBCLIENT. See: https://github.com/xoseperez/espurna/issues/1465"
  40. #endif
  41. // 1.15.0 changes preprocessor var name
  42. #ifdef BUTTON_DBLCLICK_DELAY
  43. #warning "BUTTON_DBLCLICK_DELAY is deprecated! Please use BUTTON_REPEAT_DELAY instead"
  44. #define BUTTON_REPEAT_DELAY BUTTON_DBLCLICK_DELAY
  45. #endif
  46. #ifdef BUTTON1_MODE
  47. #warning "BUTTON[1-8]_MODE is deprecated! Please use BUTTON[1-8]_CONFIG instead"
  48. #define BUTTON1_CONFIG BUTTON1_MODE
  49. #endif
  50. #ifdef BUTTON2_MODE
  51. #warning "BUTTON[1-8]_MODE is deprecated! Please use BUTTON[1-8]_CONFIG instead"
  52. #define BUTTON2_CONFIG BUTTON2_MODE
  53. #endif
  54. #ifdef BUTTON3_MODE
  55. #warning "BUTTON[1-8]_MODE is deprecated! Please use BUTTON[1-8]_CONFIG instead"
  56. #define BUTTON3_CONFIG BUTTON3_MODE
  57. #endif
  58. #ifdef BUTTON4_MODE
  59. #warning "BUTTON[1-8]_MODE is deprecated! Please use BUTTON[1-8]_CONFIG instead"
  60. #define BUTTON4_CONFIG BUTTON4_MODE
  61. #endif
  62. #ifdef BUTTON4_MODE
  63. #warning "BUTTON[1-8]_MODE is deprecated! Please use BUTTON[1-8]_CONFIG instead"
  64. #define BUTTON4_CONFIG BUTTON4_MODE
  65. #endif
  66. #ifdef BUTTON5_MODE
  67. #warning "BUTTON[1-8]_MODE is deprecated! Please use BUTTON[1-8]_CONFIG instead"
  68. #define BUTTON5_CONFIG BUTTON5_MODE
  69. #endif
  70. #ifdef BUTTON6_MODE
  71. #warning "BUTTON[1-8]_MODE is deprecated! Please use BUTTON[1-8]_CONFIG instead"
  72. #define BUTTON6_CONFIG BUTTON6_MODE
  73. #endif
  74. #ifdef BUTTON7_MODE
  75. #warning "BUTTON[1-8]_MODE is deprecated! Please use BUTTON[1-8]_CONFIG instead"
  76. #define BUTTON7_CONFIG BUTTON7_MODE
  77. #endif
  78. #ifdef BUTTON8_MODE
  79. #warning "BUTTON[1-8]_MODE is deprecated! Please use BUTTON[1-8]_CONFIG instead"
  80. #define BUTTON8_CONFIG BUTTON8_MODE
  81. #endif