if((out_bits&(1<<X_AXIS))!=0){// stepping along -X axis
if((out_bits&(1<<X_AXIS))!=0)// stepping along -X axis (regular cartesians bot)
#else
#else
if((((out_bits&(1<<X_AXIS))!=0)&&(out_bits&(1<<Y_AXIS))!=0)){//-X occurs for -A and -B
if(!((current_block->steps_x==current_block->steps_y)&&((out_bits&(1<<X_AXIS))>>X_AXIS!=(out_bits&(1<<Y_AXIS))>>Y_AXIS)))// AlexBorro: If DeltaX == -DeltaY, the movement is only in Y axis
if((out_bits&(1<<X_HEAD))!=0)
#endif
#endif
CHECK_ENDSTOPS
{// -direction
{
#ifdef DUAL_X_CARRIAGE
#ifdef DUAL_X_CARRIAGE
// with 2 x-carriages, endstops are only checked in the homing direction for the active extruder
// with 2 x-carriages, endstops are only checked in the homing direction for the active extruder
if((((out_bits&(1<<X_AXIS))!=0)&&(out_bits&(1<<Y_AXIS))==0)){// -Y occurs for -A and +B
if(!((current_block->steps_x==current_block->steps_y)&&((out_bits&(1<<X_AXIS))>>X_AXIS==(out_bits&(1<<Y_AXIS))>>Y_AXIS)))// AlexBorro: If DeltaX == DeltaY, the movement is only in X axis