Skip to content

Commit

Permalink
Allow zero dwell
Browse files Browse the repository at this point in the history
Allows a zero dwell to be used to sync the buffer. LinuxCNC says P value must be non negative. Previously 0 was not rejected, but did not do the protocol_buffer_sync()
  • Loading branch information
bdring committed Feb 18, 2025
1 parent e384d23 commit 9ca5113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FluidNC/src/MotionControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ void mc_arc(float* target,

// Execute dwell in seconds.
bool mc_dwell(int32_t milliseconds) {
if (milliseconds <= 0 || state_is(State::CheckMode)) {
if (milliseconds < 0 || state_is(State::CheckMode)) {
return false;
}
protocol_buffer_synchronize();
Expand Down

0 comments on commit 9ca5113

Please sign in to comment.