Skip to content

Commit

Permalink
Fixes spindle element in stat.mcodes array when running gcode
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigma1912 committed Nov 23, 2024
1 parent 3385223 commit f717008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emc/rs274ngc/interp_write.cc
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ int Interp::write_state_tag(block_pointer block,
(block == NULL) ? -1 : block->m_modes[4];

state.flags[GM_FLAG_SPINDLE_ON] =
!(settings->spindle_turning[0] != CANON_STOPPED);
(settings->spindle_turning[0] != CANON_STOPPED);
state.flags[GM_FLAG_SPINDLE_CW] =
(settings->spindle_turning[0] == CANON_CLOCKWISE);

Expand Down

0 comments on commit f717008

Please sign in to comment.