Skip to content

Commit

Permalink
Merge branch 'edge' of https://github.com/gnea/grbl-Mega into edge
Browse files Browse the repository at this point in the history
  • Loading branch information
chamnit committed Aug 13, 2018
2 parents 0f15e66 + a311e2d commit bc05282
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions grbl/stepper.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,10 @@ void st_generate_step_dir_invert_masks()
#ifdef DEFAULTS_RAMPS_BOARD
for (idx=0; idx<N_AXIS; idx++) {
if (bit_istrue(settings.step_invert_mask,bit(idx))) { step_port_invert_mask[idx] = get_step_pin_mask(idx); }
else { step_port_invert_mask[idx] = 0; }

if (bit_istrue(settings.dir_invert_mask,bit(idx))) { dir_port_invert_mask[idx] = get_direction_pin_mask(idx); }
else { dir_port_invert_mask[idx] = 0; }
}
#else
step_port_invert_mask = 0;
Expand Down

0 comments on commit bc05282

Please sign in to comment.