Browse Source

ws: move cmdVisible to terminal module

master
Max Prokhorov 5 years ago
parent
commit
9232ebae66
2 changed files with 5 additions and 3 deletions
  1. +5
    -0
      code/espurna/terminal.ino
  2. +0
    -3
      code/espurna/ws.ino

+ 5
- 0
code/espurna/terminal.ino View File

@ -408,6 +408,11 @@ void terminalSetup() {
#endif #endif
}); });
#if WEB_SUPPORT
wsRegister()
.onVisible([](JsonObject& root) { root["cmdVisible"] = 1; });
#endif
_terminalInitCommand(); _terminalInitCommand();
#if SERIAL_RX_ENABLED #if SERIAL_RX_ENABLED


+ 0
- 3
code/espurna/ws.ino View File

@ -540,9 +540,6 @@ void _wsOnConnected(JsonObject& root) {
root["btnDelay"] = getSetting("btnDelay", BUTTON_DBLCLICK_DELAY).toInt(); root["btnDelay"] = getSetting("btnDelay", BUTTON_DBLCLICK_DELAY).toInt();
root["webPort"] = getSetting("webPort", WEB_PORT).toInt(); root["webPort"] = getSetting("webPort", WEB_PORT).toInt();
root["wsAuth"] = getSetting("wsAuth", WS_AUTHENTICATION).toInt() == 1; root["wsAuth"] = getSetting("wsAuth", WS_AUTHENTICATION).toInt() == 1;
#if TERMINAL_SUPPORT
root["cmdVisible"] = 1;
#endif
root["hbMode"] = getSetting("hbMode", HEARTBEAT_MODE).toInt(); root["hbMode"] = getSetting("hbMode", HEARTBEAT_MODE).toInt();
root["hbInterval"] = getSetting("hbInterval", HEARTBEAT_INTERVAL).toInt(); root["hbInterval"] = getSetting("hbInterval", HEARTBEAT_INTERVAL).toInt();
} }


Loading…
Cancel
Save