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.

150 lines
4.6 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
  82. #ifdef CSE7766_PIN
  83. #warning "CSE7766_PIN is deprecated! Please use CSE7766_RX_PIN instead"
  84. #define CSE7766_RX_PIN CSE7766_PIN
  85. #endif
  86. #ifdef WIFI_FALLBACK_APMODE
  87. #warning "WIFI_FALLBACK_APMODE is deprecated! Please use WIFI_AP_MODE instead"
  88. #define WIFI_AP_MODE ((1 == WIFI_FALLBACK_APMODE) ? WiFiApMode::Fallback : WiFiApMode::Disabled)
  89. #endif
  90. #ifdef RFB_DIRECT
  91. #warning "RFB_DIRECT is deprecated! Please use RFB_PROVIDER=RFB_PROVIDER_..."
  92. #undef RFB_PROVIDER
  93. #if RFB_DIRECT
  94. #define RFB_PROVIDER RFB_PROVIDER_RCSWITCH
  95. #else
  96. #define RFB_PROVIDER RFB_PROVIDER_EFM8BB1
  97. #endif
  98. #endif
  99. #ifdef RF_LEARN_TIMEOUT
  100. #warning "RF_LEARN_TIMEOUT is deprecated! Please use RFB_LEARN_TIMEOUT"
  101. #undef RFB_LEARN_TIMEOUT
  102. #define RFB_LEARN_TIMEOUT RF_LEARN_TIMEOUT
  103. #endif
  104. #ifdef RF_SEND_TIMES
  105. #warning "RF_SEND_TIMES is deprecated! Please use RFB_SEND_TIMES"
  106. #undef RFB_SEND_TIMES
  107. #define RFB_SEND_TIMES RF_SEND_TIMES
  108. #endif
  109. #ifdef RF_SEND_DELAY
  110. #warning "RF_SEND_DELAY is deprecated! Please use RFB_SEND_DELAY"
  111. #undef RFB_SEND_DELAY
  112. #define RFB_SEND_DELAY RF_SEND_DELAY
  113. #endif
  114. #ifdef RF_RECEIVE_DELAY
  115. #warning "RF_RECEIVE_DELAY is deprecated! Please use RFB_RECEIVE_DELAY"
  116. #undef RFB_RECEIVE_DELAY
  117. #define RFB_RECEIVE_DELAY RF_RECEIVE_DELAY
  118. #endif
  119. #ifdef RF_SUPPORT
  120. #warning "RF_SUPPORT is deprecated! Please use RFB_SUPPORT"
  121. #undef RFB_SUPPORT
  122. #define RFB_SUPPORT RF_SUPPORT
  123. #endif