From 396fb41fd6053294ac3b1873c5e9b9734089563b Mon Sep 17 00:00:00 2001 From: Mitch Bradley Date: Sun, 27 Oct 2024 07:12:17 -1000 Subject: [PATCH] Fix #1361 - changed RR to OR in expressions --- FluidNC/src/Expression.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FluidNC/src/Expression.cpp b/FluidNC/src/Expression.cpp index 814ae1edd..0096947b6 100644 --- a/FluidNC/src/Expression.cpp +++ b/FluidNC/src/Expression.cpp @@ -357,7 +357,7 @@ std::map> binary_ops = { { "]", Binary_RightBracket }, { "AND", Binary_And2 }, { "MOD", Binary_Mod }, - { "RR", Binary_NotExclusiveOr }, + { "OR", Binary_NotExclusiveOr }, { "XOR", Binary_ExclusiveOr }, { "EQ", Binary_EQ }, { "NE", Binary_NE }, @@ -438,7 +438,7 @@ static Error read_operation(const char* line, size_t& pos, ngc_binary_op_t& oper status = Error::ExpressionUnknownOp; // Unknown operation name starting with M break; - case 'R': + case 'O': if (line[pos] == 'R') { operation = Binary_NotExclusiveOR; pos++;