Bläddra i källkod

Raise the servo probe before stow outside ABL context

lrpirlet 9 år sedan
förälder
incheckning
3aefa04386
1 ändrade filer med 11 tillägg och 0 borttagningar
  1. 11
    0
      Marlin/Marlin_main.cpp

+ 11
- 0
Marlin/Marlin_main.cpp Visa fil

2327
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2327
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2328
           if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("> SERVO_ENDSTOPS > Stow with servo.move()");
2328
           if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("> SERVO_ENDSTOPS > Stow with servo.move()");
2329
         #endif
2329
         #endif
2330
+        // Raise the servo probe before stow outside ABL context... This is a workaround that allows the use of a Servo Probe without ABL until a more global probe handling is implemented.
2331
+        #if DISABLED(AUTO_BED_LEVELING_FEATURE)
2332
+          #ifndef Z_RAISE_AFTER_PROBING
2333
+            #define Z_RAISE_AFTER_PROBING 15                 // default height
2334
+          #endif
2335
+          current_position[Z_AXIS] = Z_RAISE_AFTER_PROBING;
2336
+          feedrate = homing_feedrate[Z_AXIS];
2337
+          line_to_current_position();
2338
+          stepper.synchronize();
2339
+        #endif
2340
+
2330
         servo[servo_endstop_id[axis]].move(servo_endstop_angle[axis][1]);
2341
         servo[servo_endstop_id[axis]].move(servo_endstop_angle[axis][1]);
2331
         if (_Z_PROBE_SUBTEST) endstops.enable_z_probe(false);
2342
         if (_Z_PROBE_SUBTEST) endstops.enable_z_probe(false);
2332
       }
2343
       }

Laddar…
Avbryt
Spara