Skip to content

Commit

Permalink
Fixed inverted position reports
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchBradley committed Oct 6, 2024
1 parent a26bbe1 commit a53fc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FluidNC/src/Stepping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ namespace Machine {
// Turn on step pulses for motors that are supposed to step now
for (size_t axis = 0; axis < _n_active_axes; axis++) {
if (bitnum_is_true(step_mask, axis)) {
auto increment = bitnum_is_true(dir_mask, axis) ? 1 : -1;
auto increment = bitnum_is_true(dir_mask, axis) ? -1 : 1;
axis_steps[axis] += increment;
for (size_t motor = 0; motor < MAX_MOTORS_PER_AXIS; motor++) {
auto m = axis_motors[axis][motor];
Expand Down

0 comments on commit a53fc04

Please sign in to comment.