Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent spindle restore message at restart #636

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading