Skip to content

Commit

Permalink
Merge pull request #1316 from bdring/G93_G0_Fix
Browse files Browse the repository at this point in the history
Fix Logic error with G93
  • Loading branch information
bdring authored Sep 9, 2024
2 parents 2f7cc0e + bb2bd66 commit 94b2762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FluidNC/src/GCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ Error gc_execute_line(char* line) {
if (gc_block.modal.feed_rate == FeedRate::InverseTime) { // = G93
// NOTE: G38 can also operate in inverse time, but is undefined as an error. Missing F word check added here.
if (axis_command == AxisCommand::MotionMode) {
if ((gc_block.modal.motion != Motion::None) || (gc_block.modal.motion != Motion::Seek)) {
if ((gc_block.modal.motion != Motion::None) && (gc_block.modal.motion != Motion::Seek)) {
if (bitnum_is_false(value_words, GCodeWord::F)) {
FAIL(Error::GcodeUndefinedFeedRate); // [F word missing]
}
Expand Down Expand Up @@ -1550,7 +1550,7 @@ Error gc_execute_line(char* line) {
// NOTE: Pass zero spindle speed for all restricted laser motions.
if (!disableLaser) {
pl_data->spindle_speed = gc_state.spindle_speed; // Record data for planner use.
} // else { pl_data->spindle_speed = 0.0; } // Initialized as zero already.
} // else { pl_data->spindle_speed = 0.0; } // Initialized as zero already.
// [5. Select tool ]: NOT SUPPORTED. Only tracks tool value.
// gc_state.tool = gc_block.values.t;
// [M6. Change tool ]:
Expand Down

0 comments on commit 94b2762

Please sign in to comment.