|
@@ -3645,7 +3645,7 @@ inline void gcode_G28() {
|
3645
|
3645
|
#if ENABLED(MECHANICAL_PROBE)
|
3646
|
3646
|
stow_z_probe();
|
3647
|
3647
|
#endif
|
3648
|
|
-
|
|
3648
|
+
|
3649
|
3649
|
#ifdef Z_PROBE_END_SCRIPT
|
3650
|
3650
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
3651
|
3651
|
if (DEBUGGING(LEVELING)) {
|
|
@@ -6335,10 +6335,20 @@ inline void gcode_M907() {
|
6335
|
6335
|
|
6336
|
6336
|
/**
|
6337
|
6337
|
* M999: Restart after being stopped
|
|
6338
|
+ *
|
|
6339
|
+ * Default behaviour is to flush the serial buffer and request
|
|
6340
|
+ * a resend to the host starting on the last N line received.
|
|
6341
|
+ *
|
|
6342
|
+ * Sending "M999 S1" will resume printing without flushing the
|
|
6343
|
+ * existing command buffer.
|
|
6344
|
+ *
|
6338
|
6345
|
*/
|
6339
|
6346
|
inline void gcode_M999() {
|
6340
|
6347
|
Running = true;
|
6341
|
6348
|
lcd_reset_alert_level();
|
|
6349
|
+
|
|
6350
|
+ if (code_seen('S') && code_value_short() == 1) return;
|
|
6351
|
+
|
6342
|
6352
|
// gcode_LastN = Stopped_gcode_LastN;
|
6343
|
6353
|
FlushSerialRequestResend();
|
6344
|
6354
|
}
|