V1.3.1 hephestos

It seems that the function lcd_sdcard_stop() - Called by the LCD "Stop Print" function - in file ultralcd.cpp is driving the X or Y axis to the far end due to this code:
```
+ #if X_MAX_POS < 250
+ plan_buffer_line(X_MIN_POS, 150, current_position[Z_AXIS]+20, current_position[E_AXIS], manual_feedrate[X_AXIS]/60, active_extruder);
+ #else
+ plan_buffer_line(X_MAX_POS-15, Y_MAX_POS-15, Z_MAX_POS-15, current_position[E_AXIS], manual_feedrate[X_AXIS]/60, active_extruder);
+ #endif
```
Its dangerous and in the case of the Hephestos should be removed. I've seen this behaviour several times in my Printer.

It is a nice fix.

Could you please submit just the fix to main branch??

Cheers.

Alex.

2014-11-06 10:28 GMT-06:00 João Alves <notifications@github.com>:

> In Marlin/ultralcd.cpp:
>
> >      quickStop();
> > +    #if X_MAX_POS < 250
>
> It seems that the function lcd_sdcard_stop() - Called by the LCD "Stop
> Print" function - in file ultralcd.cpp is driving the X or Y axis to the
> far end of Prusa i3 Hephestos - due to this code:
>
> + #if X_MAX_POS < 250
> + plan_buffer_line(X_MIN_POS, 150, current_position[Z_AXIS]+20, current_position[E_AXIS], manual_feedrate[X_AXIS]/60, active_extruder);
> + #else
> + plan_buffer_line(X_MAX_POS-15, Y_MAX_POS-15, Z_MAX_POS-15, current_position[E_AXIS], manual_feedrate[X_AXIS]/60, active_extruder);
> + #endif
>
> Its dangerous and in the case of the Hephestos should be removed. I've
> seen this behaviour several times in my Printer.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ErikZalm/Marlin/pull/1135/files#r19955272>.
>



-- 
*"Não é o mais forte da espécie que sobrevive, nem o mais inteligente. É
aquele que se adapta melhor as mudanças"  ( Charles Darwin )*

Alex Borro