diff --git a/code/espurna/button.cpp b/code/espurna/button.cpp index 18b5e906..da8acc5b 100644 --- a/code/espurna/button.cpp +++ b/code/espurna/button.cpp @@ -283,8 +283,7 @@ void _buttonWebSocketOnVisible(JsonObject& root) { } #if (BUTTON_EVENTS_SOURCE == BUTTON_EVENTS_SOURCE_ITEAD_SONOFF_DUAL) || \ - (BUTTON_EVENTS_SOURCE == BUTTON_EVENTS_SOURCE_FOXEL_LIGHTFOX_DUAL) || \ - (BUTTON_EVENTS_SOURCE == BUTTON_EVENTS_SOURCE_MCP23S08) + (BUTTON_EVENTS_SOURCE == BUTTON_EVENTS_SOURCE_FOXEL_LIGHTFOX_DUAL) void _buttonWebSocketOnConnected(JsonObject& root) { root["btnRepDel"] = getSetting("btnRepDel", _buttonRepeatDelay()); diff --git a/code/espurna/relay.cpp b/code/espurna/relay.cpp index 6935d215..eca66fc5 100644 --- a/code/espurna/relay.cpp +++ b/code/espurna/relay.cpp @@ -1467,6 +1467,8 @@ void _relaySetupAdhoc() { using gpio_type = GpioPin; #elif (RELAY_PROVIDER == RELAY_PROVIDER_MCP23S08) using gpio_type = McpGpioPin; + #else + using gpio_type = DummyPin; #endif for (unsigned char id = 0; id < RelaysMax; ++id) {