João Brázio
9 years ago
No known key found for this signature in database
GPG Key ID: F62CFD37DFFDB540
1 changed files with
11 additions and
1 deletions
-
Marlin/Marlin_main.cpp
|
|
@ -6335,10 +6335,20 @@ inline void gcode_M907() { |
|
|
|
|
|
|
|
/**
|
|
|
|
* M999: Restart after being stopped |
|
|
|
* |
|
|
|
* Default behaviour is to flush the serial buffer and request |
|
|
|
* a resend to the host starting on the last N line received. |
|
|
|
* |
|
|
|
* Sending "M999 S1" will resume printing without flushing the |
|
|
|
* existing command buffer. |
|
|
|
* |
|
|
|
*/ |
|
|
|
inline void gcode_M999() { |
|
|
|
Running = true; |
|
|
|
lcd_reset_alert_level(); |
|
|
|
|
|
|
|
if (code_seen('S') && code_value_short() == 1) return; |
|
|
|
|
|
|
|
// gcode_LastN = Stopped_gcode_LastN;
|
|
|
|
FlushSerialRequestResend(); |
|
|
|
} |
|
|
|