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
When I ask for a homing, Z and Y axis are moving but not the X axis
After looking to the code, I founded a bug.
In my setup, . I use pin 10 as step pin for X axis.
But in file limit.c, in function void limits_go_home(), there is a definition : uint8_t step_pin[N_AXIS];
and after you have : step_pin[idx] = step_pin_mask[idx];
The issue is that step_pin_mask is an array of uint16_t instead of uint__t.
In order to let code works for several cpu, best is ti change the delaration with:
PORTPINDEF step_pin[N_AXIS];
because PORTPINDEF is already uint8_t or uint16_t depending on cpu.
The text was updated successfully, but these errors were encountered:
When I ask for a homing, Z and Y axis are moving but not the X axis
After looking to the code, I founded a bug.
In my setup, . I use pin 10 as step pin for X axis.
But in file limit.c, in function void limits_go_home(), there is a definition : uint8_t step_pin[N_AXIS];
and after you have : step_pin[idx] = step_pin_mask[idx];
The issue is that step_pin_mask is an array of uint16_t instead of uint__t.
In order to let code works for several cpu, best is ti change the delaration with:
PORTPINDEF step_pin[N_AXIS];
because PORTPINDEF is already uint8_t or uint16_t depending on cpu.
The text was updated successfully, but these errors were encountered: