mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-01 15:07:42 +00:00
Update xdrv_10_scripter.ino
This commit is contained in:
parent
768c264d04
commit
8f2ba87ced
@ -1646,6 +1646,20 @@ chknext:
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_SHUTTER
|
||||||
|
if (!strncmp(vname,"sht[",4)) {
|
||||||
|
GetNumericResult(vname+4,OPER_EQU,&fvar,0);
|
||||||
|
uint8_t index=fvar;
|
||||||
|
if (index<=shutters_present) {
|
||||||
|
fvar=Settings.shutter_position[index-1];
|
||||||
|
} else {
|
||||||
|
fvar=-1;
|
||||||
|
}
|
||||||
|
len+=1;
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
if (!strncmp(vname,"time",4)) {
|
if (!strncmp(vname,"time",4)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user