mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
fix scripter bug
This commit is contained in:
parent
c5df7ed1ae
commit
5fabf3c138
@ -4326,14 +4326,15 @@ int16_t Run_script_sub(const char *type, int8_t tlen, struct GVARS *gv) {
|
|||||||
goto next_line;
|
goto next_line;
|
||||||
}
|
}
|
||||||
#ifdef USE_SENDMAIL
|
#ifdef USE_SENDMAIL
|
||||||
|
/*
|
||||||
else if (!strncmp(lp, "sm", 2)) {
|
else if (!strncmp(lp, "sm", 2)) {
|
||||||
lp+=3;
|
lp+=3;
|
||||||
char tmp[256];
|
char tmp[256];
|
||||||
Replace_Cmd_Vars(lp ,1 , tmp, sizeof(tmp));
|
Replace_Cmd_Vars(lp ,1 , tmp, sizeof(tmp));
|
||||||
SendMail(tmp);
|
SendMail(tmp);
|
||||||
goto next_line;
|
goto next_line;
|
||||||
}
|
}*/
|
||||||
#endif
|
#endif
|
||||||
else if (!strncmp(lp,"=>",2) || !strncmp(lp,"->",2) || !strncmp(lp,"+>",2) || !strncmp(lp,"print",5)) {
|
else if (!strncmp(lp,"=>",2) || !strncmp(lp,"->",2) || !strncmp(lp,"+>",2) || !strncmp(lp,"print",5)) {
|
||||||
// execute cmd
|
// execute cmd
|
||||||
uint8_t sflag = 0,pflg = 0,svmqtt,swll;
|
uint8_t sflag = 0,pflg = 0,svmqtt,swll;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user