From b585faf20da559084db97f4fc65a952a8d636387 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 6 Jun 2021 19:33:19 +0200 Subject: [PATCH] fix compile error --- tasmota/xdrv_10_scripter.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasmota/xdrv_10_scripter.ino b/tasmota/xdrv_10_scripter.ino index f5105a35f..05b69df0c 100755 --- a/tasmota/xdrv_10_scripter.ino +++ b/tasmota/xdrv_10_scripter.ino @@ -4169,7 +4169,7 @@ int16_t Run_script_sub(const char *type, int8_t tlen, struct GVARS *gv); #define IF_NEST 8 // execute section of scripter -int16_t Run_Scripter(const char *type, int8_t tlen, char *js) { +int16_t Run_Scripter(const char *type, int8_t tlen, const char *js) { int16_t retval; if (!glob_script_mem.scriptptr) { @@ -4183,9 +4183,9 @@ int16_t retval; JsonParserObject jo; if (js) { - //String jss = js; // copy the string to a new buffer, not sure we can change the original buffer + String jss = js; // copy the string to a new buffer, not sure we can change the original buffer //JsonParser parser((char*)jss.c_str()); - JsonParser parser(js); + JsonParser parser((char*)jss.c_str()); jo = parser.getRootObject(); gv.jo = &jo; retval = Run_script_sub(type, tlen, &gv);