Skip to content

Commit

Permalink
added missing G80 validation check
Browse files Browse the repository at this point in the history
  • Loading branch information
Paciente8159 committed Nov 23, 2024
1 parent f88facd commit be98501
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions uCNC/src/core/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,13 @@ static uint8_t parser_validate_command(parser_state_t *new_state, parser_words_t
}
}

// https://linuxcnc.org/docs/html/gcode/g-code.html#gcode:g80
// any axis word with active G80 command is invalid
if (CHECKFLAG(cmd->words, GCODE_ALL_AXIS) && new_state->groups.motion == G80)
{
return STATUS_GCODE_AXIS_WORDS_EXIST;
}

// group 2 - plane selection (nothing to be checked)
// group 3 - distance mode (nothing to be checked)

Expand Down

0 comments on commit be98501

Please sign in to comment.