You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried this version of firmware and found motor reverse direction setting isn't working at all.
But it's easy to make it work, Just add this line in stepper.c (after line "st.step_outbits = 0;"):
It also reasonable to comment these lines as they are not used:
...
DIRECTION_PORT = (DIRECTION_PORT & ~DIRECTION_MASK) | (st.dir_outbits & DIRECTION_MASK);
...
st.dir_outbits = st.exec_block->direction_bits ^ dir_port_invert_mask;
...
DIRECTION_PORT = (DIRECTION_PORT & ~DIRECTION_MASK) | dir_port_invert_mask;
The text was updated successfully, but these errors were encountered:
Tried this version of firmware and found motor reverse direction setting isn't working at all.
But it's easy to make it work, Just add this line in stepper.c (after line "st.step_outbits = 0;"):
st.exec_block->direction_bits = st.exec_block->direction_bits ^ dir_port_invert_mask;
It also reasonable to comment these lines as they are not used:
...
DIRECTION_PORT = (DIRECTION_PORT & ~DIRECTION_MASK) | (st.dir_outbits & DIRECTION_MASK);
...
st.dir_outbits = st.exec_block->direction_bits ^ dir_port_invert_mask;
...
DIRECTION_PORT = (DIRECTION_PORT & ~DIRECTION_MASK) | dir_port_invert_mask;
The text was updated successfully, but these errors were encountered: