Fix missing changes

This commit is contained in:
Nanosonde 2020-07-21 18:46:03 +02:00
parent 15ca935092
commit e091ef6536
2 changed files with 21 additions and 21 deletions

View File

@ -14,7 +14,7 @@
#elif ARDUINO_ARCH_ESP8266
// predefined global instance for IP only
#if MASK_VERSION == 0x07B0
#if MASK_VERSION == 0x57B0
KnxFacade<EspPlatform, Bau57B0> knx;
#else
#error Mask version not supported on ARDUINO_ARCH_ESP8266

View File

@ -319,36 +319,36 @@ template <class P, class B> class KnxFacade : private SaveRestore
#ifdef ARDUINO_ARCH_SAMD
// predefined global instance for TP or RF
#ifdef MEDIUM_TYPE
#if MEDIUM_TYPE == 0
extern KnxFacade<SamdPlatform, Bau07B0> knx;
#elif MEDIUM_TYPE == 2
extern KnxFacade<SamdPlatform, Bau27B0> knx;
#else
#error "Only TP and RF supported for Arduino SAMD platform!"
#endif
#if MASK_VERSION == 0x07B0
extern KnxFacade<SamdPlatform, Bau07B0> knx;
#elif MASK_VERSION == 0x27B0
extern KnxFacade<SamdPlatform, Bau27B0> knx;
#else
#error "No medium type specified for Arduino_SAMD platform! Please set MEDIUM_TYPE! (TP:0, RF:2, IP:5)"
#error "Mask version not supported on ARDUINO_ARCH_SAMD"
#endif
#elif ARDUINO_ARCH_ESP8266
// predefined global instance for IP only
extern KnxFacade<EspPlatform, Bau57B0> knx;
#if MASK_VERSION == 0x57B0
extern KnxFacade<EspPlatform, Bau57B0> knx;
#else
#error "Mask version not supported on ARDUINO_ARCH_ESP8266"
#endif
#elif ARDUINO_ARCH_ESP32
// predefined global instance for TP or IP
#ifdef MEDIUM_TYPE
#if MEDIUM_TYPE == 0
extern KnxFacade<Esp32Platform, Bau07B0> knx;
#elif MEDIUM_TYPE == 5
extern KnxFacade<Esp32Platform, Bau57B0> knx;
#else
#error "Only TP and IP supported for Arduino ESP32 platform!"
#endif
#if MASK_VERSION == 0x07B0
extern KnxFacade<Esp32Platform, Bau07B0> knx;
#elif MASK_VERSION == 0x57B0
extern KnxFacade<Esp32Platform, Bau57B0> knx;
#else
#error "No medium type specified for Arduino ESP32 platform! Please set MEDIUM_TYPE! (TP:0, RF:2, IP:5)"
#error "Mask version not supported on ARDUINO_ARCH_ESP32"
#endif
#elif ARDUINO_ARCH_STM32
// predefined global instance for TP only
extern KnxFacade<Stm32Platform, Bau07B0> knx;
#if MASK_VERSION == 0x07B0
extern KnxFacade<Stm32Platform, Bau07B0> knx;
#else
#error Mask version not supported on ARDUINO_ARCH_STM32
#endif
#elif __linux__
// no predefined global instance
#endif