Add option to only check endstop when homing

This commit is contained in:
Erik van der Zalm
2011-12-04 20:17:21 +01:00
parent 95a0b28acb
commit b99c49ec3b
4 changed files with 89 additions and 55 deletions

View File

@@ -528,6 +528,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];
}
@@ -563,6 +565,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;