From e77dc3eecf0e00dc670c09012a6ff5eb7eeda6b3 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Thu, 1 Aug 2019 22:59:12 +0200 Subject: [PATCH] Increased Web command size --- sonoff/xdrv_01_webserver.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonoff/xdrv_01_webserver.ino b/sonoff/xdrv_01_webserver.ino index 9cb1e5139..c48d145c5 100644 --- a/sonoff/xdrv_01_webserver.ino +++ b/sonoff/xdrv_01_webserver.ino @@ -2165,7 +2165,7 @@ void HandleHttpCommand(void) if (valid) { uint32_t curridx = web_log_index; String svalue = WebServer->arg("cmnd"); - if (svalue.length() && (svalue.length() < INPUT_BUFFER_SIZE)) { + if (svalue.length() && (svalue.length() < MQTT_MAX_PACKET_SIZE)) { ExecuteWebCommand((char*)svalue.c_str(), SRC_WEBCOMMAND); if (web_log_index != curridx) { uint32_t counter = curridx; @@ -2231,7 +2231,7 @@ void HandleConsoleRefresh(void) uint32_t counter = 0; // Initial start, should never be 0 again String svalue = WebServer->arg("c1"); - if (svalue.length() && (svalue.length() < INPUT_BUFFER_SIZE)) { + if (svalue.length() && (svalue.length() < MQTT_MAX_PACKET_SIZE)) { AddLog_P2(LOG_LEVEL_INFO, PSTR(D_LOG_COMMAND "%s"), svalue.c_str()); ExecuteWebCommand((char*)svalue.c_str(), SRC_WEBCONSOLE); }