mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-01 23:17:43 +00:00
Rule did not been triggered if there's no comparation operator
Rule did not been triggered if there's no comparation operator provided as trigger. For example: Rule1 ON EVENT#POWERON DO ... ENDON The rule_name should be assigned as "POWERON" by default.
This commit is contained in:
parent
56b0f6efdc
commit
ea3fcaf22c
@ -339,6 +339,7 @@ int8_t parseCompareExpression(String &expr, String &leftExpr, String &rightExpr)
|
||||
{
|
||||
char compare_operator[3];
|
||||
int8_t compare = COMPARE_OPERATOR_NONE;
|
||||
leftExpr = expr;
|
||||
int position;
|
||||
for (int8_t i = MAXIMUM_COMPARE_OPERATOR; i >= 0; i--) {
|
||||
snprintf_P(compare_operator, sizeof(compare_operator), kCompareOperators + (i *2));
|
||||
|
Loading…
x
Reference in New Issue
Block a user