Skip to content

Commit

Permalink
Fix #1361 - changed RR to OR in expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchBradley committed Oct 27, 2024
1 parent 8e36c50 commit 396fb41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FluidNC/src/Expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ std::map<std::string, ngc_cmd_t, std::less<>> 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 },
Expand Down Expand Up @@ -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++;
Expand Down

0 comments on commit 396fb41

Please sign in to comment.