From 4d9899bd26a93d62fa81e82b4af4048b757b6d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sun, 8 Apr 2018 22:47:49 +0200 Subject: [PATCH] Hide web command inputbox if no terminal support --- code/espurna/ws.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/espurna/ws.ino b/code/espurna/ws.ino index 40686e79..2ecd3977 100644 --- a/code/espurna/ws.ino +++ b/code/espurna/ws.ino @@ -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 }