mirror of https://github.com/arendst/Tasmota.git
Fix Scripter JSON variable lenght issue
Fix Scripter JSON variable lenght issue (#10193)
This commit is contained in:
parent
f03158d143
commit
12439dc866
|
@ -1584,7 +1584,7 @@ float fvar;
|
||||||
char *isvar(char *lp, uint8_t *vtype, struct T_INDEX *tind, float *fp, char *sp, JsonParserObject *jo) {
|
char *isvar(char *lp, uint8_t *vtype, struct T_INDEX *tind, float *fp, char *sp, JsonParserObject *jo) {
|
||||||
uint16_t count,len = 0;
|
uint16_t count,len = 0;
|
||||||
uint8_t nres = 0;
|
uint8_t nres = 0;
|
||||||
char vname[32];
|
char vname[64];
|
||||||
float fvar = 0;
|
float fvar = 0;
|
||||||
tind->index = 0;
|
tind->index = 0;
|
||||||
tind->bits.data = 0;
|
tind->bits.data = 0;
|
||||||
|
@ -1713,7 +1713,7 @@ char *isvar(char *lp, uint8_t *vtype, struct T_INDEX *tind, float *fp, char *sp,
|
||||||
|
|
||||||
if (jo) {
|
if (jo) {
|
||||||
// look for json input
|
// look for json input
|
||||||
char jvname[32];
|
char jvname[64];
|
||||||
strcpy(jvname, vname);
|
strcpy(jvname, vname);
|
||||||
const char* str_value;
|
const char* str_value;
|
||||||
uint8_t aindex;
|
uint8_t aindex;
|
||||||
|
|
Loading…
Reference in New Issue