Browse Source

Hide web command inputbox if no terminal support

rfm69
Xose Pérez 6 years ago
parent
commit
4d9899bd26
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      code/espurna/ws.ino

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

@ -298,7 +298,9 @@ void _wsOnStart(JsonObject& root) {
root["btnDelay"] = getSetting("btnDelay", BUTTON_DBLCLICK_DELAY).toInt();
root["webPort"] = getSetting("webPort", WEB_PORT).toInt();
root["wsAuth"] = getSetting("wsAuth", WS_AUTHENTICATION).toInt() == 1;
root["cmdVisible"] = TERMINAL_SUPPORT;
#if TERMINAL_SUPPORT
root["cmdVisible"] = 1;
#endif
}


Loading…
Cancel
Save