mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
fix compile error
This commit is contained in:
parent
98d8b3e6e6
commit
b585faf20d
@ -4169,7 +4169,7 @@ int16_t Run_script_sub(const char *type, int8_t tlen, struct GVARS *gv);
|
|||||||
|
|
||||||
#define IF_NEST 8
|
#define IF_NEST 8
|
||||||
// execute section of scripter
|
// 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;
|
int16_t retval;
|
||||||
|
|
||||||
if (!glob_script_mem.scriptptr) {
|
if (!glob_script_mem.scriptptr) {
|
||||||
@ -4183,9 +4183,9 @@ int16_t retval;
|
|||||||
JsonParserObject jo;
|
JsonParserObject jo;
|
||||||
|
|
||||||
if (js) {
|
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((char*)jss.c_str());
|
||||||
JsonParser parser(js);
|
JsonParser parser((char*)jss.c_str());
|
||||||
jo = parser.getRootObject();
|
jo = parser.getRootObject();
|
||||||
gv.jo = &jo;
|
gv.jo = &jo;
|
||||||
retval = Run_script_sub(type, tlen, &gv);
|
retval = Run_script_sub(type, tlen, &gv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user