From 436827eb90106746c094863fda60d98700b6212c Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Thu, 16 Jul 2020 22:59:13 +0300 Subject: [PATCH] relay: fix building with rfbridge provider --- code/espurna/button.cpp | 3 +-- code/espurna/relay.cpp | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) 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) {