From: <adr...@us...> - 2011-05-09 00:15:24
|
Revision: 4125 http://reprap.svn.sourceforge.net/reprap/?rev=4125&view=rev Author: adrian-bowyer Date: 2011-05-09 00:15:18 +0000 (Mon, 09 May 2011) Log Message: ----------- Axis home code protected against possible lack of endstops. Modified Paths: -------------- trunk/software/firmware/Tonokip_Firmware/Tonokip_Firmware.pde Modified: trunk/software/firmware/Tonokip_Firmware/Tonokip_Firmware.pde =================================================================== --- trunk/software/firmware/Tonokip_Firmware/Tonokip_Firmware.pde 2011-05-08 17:05:16 UTC (rev 4124) +++ trunk/software/firmware/Tonokip_Firmware/Tonokip_Firmware.pde 2011-05-09 00:15:18 UTC (rev 4125) @@ -493,7 +493,10 @@ saved_feedrate = current_feedrate; current_feedrate = 1500.0; current_to_dest(); - destination_x = -2.0*X_MAX_LENGTH; + if(X_MIN_PIN >= 0) + destination_x = -2.0*X_MAX_LENGTH; + else + destination_x = 0.0; // Best we can do setup_move(); #ifdef REPRAP_ACC linear_move(); @@ -509,7 +512,10 @@ saved_feedrate = current_feedrate; current_feedrate = 1500.0; current_to_dest(); - destination_y = -2.0*Y_MAX_LENGTH; + if(Y_MIN_PIN >= 0) + destination_y = -2.0*Y_MAX_LENGTH; + else + destination_y = 0.0; // Best we can do setup_move(); #ifdef REPRAP_ACC linear_move(); @@ -525,7 +531,10 @@ saved_feedrate = current_feedrate; current_feedrate = 100.0; current_to_dest(); - destination_z = -2.0*Z_MAX_LENGTH; + if(Z_MIN_PIN >= 0) + destination_z = -2.0*Z_MAX_LENGTH; + else + destination_z = 0.0; // Best we can do setup_move(); #ifdef REPRAP_ACC linear_move(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |