Update xdrv_10_scripter.ino

This commit is contained in:
gemu2015 2019-09-30 10:41:04 +02:00
parent 768c264d04
commit 8f2ba87ced

View File

@ -1646,6 +1646,20 @@ chknext:
goto exit;
}
#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;
case 't':
if (!strncmp(vname,"time",4)) {