Merge branch 'Marlin_v1' of https://github.com/ErikZalm/Marlin into Marlin_v1

This commit is contained in:
Bernhard
2011-12-04 22:27:37 +01:00
5 changed files with 142 additions and 74 deletions

View File

@ -529,6 +529,8 @@ FORCE_INLINE void process_commands()
saved_feedmultiply = feedmultiply;
feedmultiply = 100;
enable_endstops(true);
for(int8_t i=0; i < NUM_AXIS; i++) {
destination[i] = current_position[i];
}
@ -564,6 +566,9 @@ FORCE_INLINE void process_commands()
HOMEAXIS(Z);
current_position[2]=code_value()+add_homeing[2];
}
#ifdef ENDSTOPS_ONLY_FOR_HOMING
enable_endstops(false);
#endif
feedrate = saved_feedrate;
feedmultiply = saved_feedmultiply;