Skip to content

Commit

Permalink
fix jog flag being cleared
Browse files Browse the repository at this point in the history
- fix jog flag being cleared while waiting for jog command to complete (introduced with #565)
  • Loading branch information
Paciente8159 committed Nov 17, 2023
1 parent 160f4b6 commit 94511ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion uCNC/src/core/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ static uint8_t parser_grbl_command(void)
{
return STATUS_IDLE_ERROR;
}
cnc_set_exec_state(EXEC_JOG);
return GRBL_JOG_CMD;
}
break;
Expand Down Expand Up @@ -1821,6 +1820,11 @@ static uint8_t parser_gcode_command(bool is_jogging)
return result;
}

if (is_jogging)
{
cnc_set_exec_state(EXEC_JOG);
}

// validates command
result = parser_validate_command(&next_state, &words, &cmd);
if (result != STATUS_OK)
Expand Down

0 comments on commit 94511ba

Please sign in to comment.