From cda3dab0a141e0ec9651bb3a3740e4adefd9f649 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Tue, 4 Feb 2020 19:20:15 +0300 Subject: [PATCH] Fix rpnSticky inverse condition (#2135) --- code/espurna/rpnrules.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/rpnrules.ino b/code/espurna/rpnrules.ino index 0e3c1287..a3340e4f 100644 --- a/code/espurna/rpnrules.ino +++ b/code/espurna/rpnrules.ino @@ -322,7 +322,7 @@ void _rpnRun() { rpn_stack_clear(_rpn_ctxt); } - if (getSetting("rpnSticky", 1 == RPN_STICKY)) { + if (!getSetting("rpnSticky", 1 == RPN_STICKY)) { rpn_variables_clear(_rpn_ctxt); }