Skip to content

Commit 01a0ab2

Browse files
authored
Merge pull request #2438 from satiowadahc/cw-m5default
RS274: M5 default to all spindles.
2 parents d25f2a6 + ca9f952 commit 01a0ab2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/emc/rs274ngc/interp_convert.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3476,8 +3476,10 @@ int Interp::convert_m(block_pointer block, //!< pointer to a block of RS27
34763476
enqueue_STOP_SPINDLE_TURNING(block->dollar_number);
34773477
}
34783478
} else { // the default spindle
3479-
settings->spindle_turning[0] = CANON_STOPPED;
3480-
enqueue_STOP_SPINDLE_TURNING(0);
3479+
for (int i = 0; i < settings->num_spindles; i++){
3480+
settings->spindle_turning[i] = CANON_STOPPED;
3481+
enqueue_STOP_SPINDLE_TURNING(i);
3482+
}
34813483
}
34823484
} else if ((block->m_modes[7] == 19) && ONCE_M(7)) {
34833485
for (int i = 0; i < settings->num_spindles; i++)

0 commit comments

Comments
 (0)