mirror of https://github.com/arendst/Tasmota.git
Merge pull request #6406 from laurentdong/pullrequest
Rule did not been triggered if there's no comparation operator
This commit is contained in:
commit
7479236864
|
@ -339,6 +339,7 @@ int8_t parseCompareExpression(String &expr, String &leftExpr, String &rightExpr)
|
||||||
{
|
{
|
||||||
char compare_operator[3];
|
char compare_operator[3];
|
||||||
int8_t compare = COMPARE_OPERATOR_NONE;
|
int8_t compare = COMPARE_OPERATOR_NONE;
|
||||||
|
leftExpr = expr;
|
||||||
int position;
|
int position;
|
||||||
for (int8_t i = MAXIMUM_COMPARE_OPERATOR; i >= 0; i--) {
|
for (int8_t i = MAXIMUM_COMPARE_OPERATOR; i >= 0; i--) {
|
||||||
snprintf_P(compare_operator, sizeof(compare_operator), kCompareOperators + (i *2));
|
snprintf_P(compare_operator, sizeof(compare_operator), kCompareOperators + (i *2));
|
||||||
|
|
Loading…
Reference in New Issue