Browse Source

Merge pull request #2136 from thinkyhead/M303_suppress_error

Suppress the line mismatch error after M303
Scott Lahteine 9 years ago
parent
commit
70d2f48d4e
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      Marlin/Marlin_main.cpp

+ 3
- 0
Marlin/Marlin_main.cpp View File

@@ -4465,6 +4465,9 @@ inline void gcode_M303() {
4465 4465
   int c = code_seen('C') ? code_value_short() : 5;
4466 4466
   float temp = code_seen('S') ? code_value() : (e < 0 ? 70.0 : 150.0);
4467 4467
   PID_autotune(temp, e, c);
4468
+  // Suppress a line mismatch error
4469
+  gcode_LastN += 1;
4470
+  FlushSerialRequestResend();
4468 4471
 }
4469 4472
 
4470 4473
 #ifdef SCARA

Loading…
Cancel
Save