Skip to content

Commit

Permalink
🐛 Fix G5 IJ with Motion Mode (#21858)
Browse files Browse the repository at this point in the history
  • Loading branch information
eltonlaw authored and thinkyhead committed May 15, 2021
1 parent ed224ca commit 72c28d3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Marlin/src/gcode/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,9 @@ void GCodeParser::parse(char *p) {
break;

#if ENABLED(GCODE_MOTION_MODES)
#if ENABLED(ARC_SUPPORT)
case 'I' ... 'J':
if (motion_mode_codenum != 2 && motion_mode_codenum != 3) return;
#endif
case 'I' ... 'J':
if (motion_mode_codenum != 5 && \
TERN1(ARC_SUPPORT, motion_mode_codenum != 2 && motion_mode_codenum != 3)) return;
case 'Q':
if (motion_mode_codenum != 5) return;
case 'X' ... 'Z': case 'E' ... 'F':
Expand Down

0 comments on commit 72c28d3

Please sign in to comment.