mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-03-14 18:13:09 +01:00
Conditional compile for MQTT
This commit is contained in:
parent
33f2474c20
commit
8fc1470e4e
11
defines.h
11
defines.h
@ -33,9 +33,16 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLE_ETHERNET && (defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_SAMD_ZERO) || defined(TEENSYDUINO))
|
#if ENABLE_ETHERNET && (defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560) || defined(ARDUINO_SAMD_ZERO) || defined(TEENSYDUINO))
|
||||||
#define ETHERNET_ON true
|
#define ETHERNET_ON true
|
||||||
#else
|
#else
|
||||||
#define ETHERNET_ON false
|
#define ETHERNET_ON false
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// MQTT is on only if the ethernet is enabled
|
||||||
|
#if ENABLE_MQTT && ETHERNET_ON
|
||||||
|
#define MQTT_ON
|
||||||
|
#else
|
||||||
|
#warning MQTT requires Ethernet to be enabled.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// #if WIFI_ON && ETHERNET_ON
|
// #if WIFI_ON && ETHERNET_ON
|
||||||
|
Loading…
Reference in New Issue
Block a user