Skip to content

Commit

Permalink
fixed mantissa checking for G38
Browse files Browse the repository at this point in the history
  • Loading branch information
Paciente8159 committed Jan 17, 2024
1 parent 14549cb commit 97f8909
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions uCNC/src/core/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -2102,6 +2102,10 @@ static uint8_t parser_gcode_word(uint8_t code, uint8_t mantissa, parser_state_t
// motion codes
#ifndef DISABLE_PROBING_SUPPORT
case 38: // check if 38.x
if (mantissa < 2 || mantissa > 5)
{
return STATUS_GCODE_UNSUPPORTED_COMMAND;
}
#ifdef ENABLE_G39_H_MAPPING
case 39:
#endif
Expand Down

0 comments on commit 97f8909

Please sign in to comment.