From 2335f2fedd0b592bdbb4fb2e23a0ad56ca3730c0 Mon Sep 17 00:00:00 2001 From: Alexander Schliebner Date: Sat, 7 Mar 2020 18:52:24 +0100 Subject: [PATCH] Bugfix in function 'mp' If optional parameter v2 was omitted, evaluation failed. --- tasmota/xdrv_10_scripter.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_10_scripter.ino b/tasmota/xdrv_10_scripter.ino index be65a3e37..30ed26598 100755 --- a/tasmota/xdrv_10_scripter.ino +++ b/tasmota/xdrv_10_scripter.ino @@ -1512,7 +1512,7 @@ chknext: (*opp=='>' && fvar1>fvar2) || (*opp=='=' && fvar1==fvar2)) { - if (*lp!='<' && *lp!='>' && *lp!='=') { + if (*lp!='<' && *lp!='>' && *lp!='=' && *lp!=')' && *lp!=SCRIPT_EOL) { float fvar3; lp=GetNumericResult(lp,OPER_EQU,&fvar3,0); SCRIPT_SKIP_SPACES