Skip to content

Commit

Permalink
Merge pull request #636 from Paciente8159/fix-spindle-restart-message…
Browse files Browse the repository at this point in the history
…-startup

prevent spindle restore message at restart
  • Loading branch information
Paciente8159 authored Feb 20, 2024
2 parents 2ebef83 + 843d73f commit 7433265
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uCNC/src/cnc.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ void cnc_clear_exec_state(uint8_t statemask)
// if something goes wrong the tool can reinstate the HOLD state
itp_sync_spindle();
#if (DELAY_ON_RESUME_SPINDLE > 0)
if (!g_settings.laser_mode)
if (!g_settings.laser_mode && cnc_state.loop_state == LOOP_RUNNING)
{
protocol_send_feedback(MSG_FEEDBACK_10);
if (!planner_buffer_is_empty())
Expand Down Expand Up @@ -822,7 +822,8 @@ void cnc_exec_rt_commands(void)
if (cnc_get_exec_state(EXEC_HOLD | EXEC_DOOR | EXEC_RUN) == EXEC_HOLD) // only available if a TRUE hold is active
{
// toogle state
if(planner_spindle_ovr_toggle()){
if (planner_spindle_ovr_toggle())
{
protocol_send_feedback(MSG_FEEDBACK_10);
}
}
Expand Down

0 comments on commit 7433265

Please sign in to comment.