Browse Source

relay: fix building with rfbridge provider

mcspr-patch-1
Maxim Prokhorov 4 years ago
parent
commit
436827eb90
2 changed files with 3 additions and 2 deletions
  1. +1
    -2
      code/espurna/button.cpp
  2. +2
    -0
      code/espurna/relay.cpp

+ 1
- 2
code/espurna/button.cpp View File

@ -283,8 +283,7 @@ void _buttonWebSocketOnVisible(JsonObject& root) {
} }
#if (BUTTON_EVENTS_SOURCE == BUTTON_EVENTS_SOURCE_ITEAD_SONOFF_DUAL) || \ #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) { void _buttonWebSocketOnConnected(JsonObject& root) {
root["btnRepDel"] = getSetting("btnRepDel", _buttonRepeatDelay()); root["btnRepDel"] = getSetting("btnRepDel", _buttonRepeatDelay());


+ 2
- 0
code/espurna/relay.cpp View File

@ -1467,6 +1467,8 @@ void _relaySetupAdhoc() {
using gpio_type = GpioPin; using gpio_type = GpioPin;
#elif (RELAY_PROVIDER == RELAY_PROVIDER_MCP23S08) #elif (RELAY_PROVIDER == RELAY_PROVIDER_MCP23S08)
using gpio_type = McpGpioPin; using gpio_type = McpGpioPin;
#else
using gpio_type = DummyPin;
#endif #endif
for (unsigned char id = 0; id < RelaysMax; ++id) { for (unsigned char id = 0; id < RelaysMax; ++id) {


Loading…
Cancel
Save