From 8ce525b860ffa7afb19dbb88ec257b9c169d1046 Mon Sep 17 00:00:00 2001 From: bdring Date: Mon, 12 Nov 2018 20:09:46 -0600 Subject: [PATCH] Fixed typo Parenthesis was in the wrong place. (inherited from gnea/grbl) --- Grbl_Esp32/gcode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Grbl_Esp32/gcode.cpp b/Grbl_Esp32/gcode.cpp index a098eb57..7f92e72f 100644 --- a/Grbl_Esp32/gcode.cpp +++ b/Grbl_Esp32/gcode.cpp @@ -862,7 +862,7 @@ uint8_t gc_execute_line(char *line, uint8_t client) if (gc_parser_flags & GC_PARSER_JOG_MOTION) { // Only distance and unit modal commands and G53 absolute override command are allowed. // NOTE: Feed rate word and axis word checks have already been performed in STEP 3. - if (command_words & ~(bit(MODAL_GROUP_G3) | bit(MODAL_GROUP_G6 | bit(MODAL_GROUP_G0))) ) { FAIL(STATUS_INVALID_JOG_COMMAND) }; + if (command_words & ~(bit(MODAL_GROUP_G3) | bit(MODAL_GROUP_G6) | bit(MODAL_GROUP_G0)) ) { FAIL(STATUS_INVALID_JOG_COMMAND) }; if (!(gc_block.non_modal_command == NON_MODAL_ABSOLUTE_OVERRIDE || gc_block.non_modal_command == NON_MODAL_NO_ACTION)) { FAIL(STATUS_INVALID_JOG_COMMAND); } // Initialize planner data to current spindle and coolant modal state.