Browse Source

Global setup_for_endstop_move

Scott Lahteine 10 years ago
parent
commit
367e2eb9f4
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      Marlin/Marlin_main.cpp

+ 8
- 0
Marlin/Marlin_main.cpp View File

@@ -1096,6 +1096,14 @@ inline void sync_plan_position() {
1096 1096
 inline void set_current_to_destination() { memcpy(current_position, destination, sizeof(current_position)); }
1097 1097
 inline void set_destination_to_current() { memcpy(destination, current_position, sizeof(destination)); }
1098 1098
 
1099
+static void setup_for_endstop_move() {
1100
+  saved_feedrate = feedrate;
1101
+  saved_feedrate_multiplier = feedrate_multiplier;
1102
+  feedrate_multiplier = 100;
1103
+  refresh_cmd_timeout();
1104
+  enable_endstops(true);
1105
+}
1106
+
1099 1107
 #ifdef ENABLE_AUTO_BED_LEVELING
1100 1108
 
1101 1109
   #ifdef DELTA

Loading…
Cancel
Save