mirror of https://github.com/arendst/Tasmota.git
commit
d4421b2d08
|
@ -2731,9 +2731,14 @@ int16_t Run_Scripter(const char *type, int8_t tlen, char *js) {
|
|||
uint8_t index=glob_script_mem.type[ind.index].index;
|
||||
if ((vtype&STYPE)==0) {
|
||||
// numeric result
|
||||
if (ind.bits.settable) {
|
||||
if (ind.bits.settable || ind.bits.is_filter) {
|
||||
dfvar=&sysvar;
|
||||
sysv_type=ind.index;
|
||||
if (ind.bits.settable) {
|
||||
sysv_type=ind.index;
|
||||
} else {
|
||||
sysv_type=0;
|
||||
}
|
||||
|
||||
} else {
|
||||
dfvar=&glob_script_mem.fvars[index];
|
||||
sysv_type=0;
|
||||
|
|
Loading…
Reference in New Issue