//files auto[0-9].g on the sd card are performed in a row
//this is to delay autostart and hence the initialisaiton of the sd card to some seconds after the normal init, so the device is available quick after a reset
if((out_bits&(1<<X_AXIS))!=0){// stepping along -X axis
#else
if((((out_bits&(1<<X_AXIS))!=0)&&(out_bits&(1<<Y_AXIS))!=0)){//-X occurs for -A and -B
#endif
CHECK_ENDSTOPS
{
CHECK_ENDSTOPS{// check X and Y Endstops
#ifndef COREXY
if((out_bits&(1<<X_AXIS))!=0)// stepping along -X axis (regular cartesians bot)
#else
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
{// -direction
#ifdef DUAL_X_CARRIAGE
// 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
#endif
CHECK_ENDSTOPS
{
#ifndef COREXY
if((out_bits&(1<<Y_AXIS))!=0)// -direction
#else
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