diff --git a/tasmota/support_command.ino b/tasmota/support_command.ino index a226f8312..34a3bd2e3 100644 --- a/tasmota/support_command.ino +++ b/tasmota/support_command.ino @@ -1284,12 +1284,14 @@ void CmndTemplate(void) } } else { - if (JsonTemplate(XdrvMailbox.data)) { // Free 336 bytes StaticJsonBuffer stack space by moving code to function +#ifndef FIRMWARE_MINIMAL // if tasmota-minimal, `Template` is read-only + if (JsonTemplate(XdrvMailbox.data)) { if (USER_MODULE == Settings.module) { TasmotaGlobal.restart_flag = 2; } } else { ResponseCmndChar_P(PSTR(D_JSON_INVALID_JSON)); error = true; } +#endif // FIRMWARE_MINIMAL } if (!error) { TemplateJson(); } } diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index 1deb269d0..243ab46d5 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -3401,7 +3401,9 @@ void CmndWebColor(void) } } else { +#ifndef FIRMWARE_MINIMAL // if tasmota-minimal, read only and don't parse JSON JsonWebColor(XdrvMailbox.data); +#endif // FIRMWARE_MINIMAL } } Response_P(PSTR("{\"" D_CMND_WEBCOLOR "\":["));