Browse Source

Merge pull request #2136 from thinkyhead/M303_suppress_error

Suppress the line mismatch error after M303
Scott Lahteine 10 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
   int c = code_seen('C') ? code_value_short() : 5;
4465
   int c = code_seen('C') ? code_value_short() : 5;
4466
   float temp = code_seen('S') ? code_value() : (e < 0 ? 70.0 : 150.0);
4466
   float temp = code_seen('S') ? code_value() : (e < 0 ? 70.0 : 150.0);
4467
   PID_autotune(temp, e, c);
4467
   PID_autotune(temp, e, c);
4468
+  // Suppress a line mismatch error
4469
+  gcode_LastN += 1;
4470
+  FlushSerialRequestResend();
4468
 }
4471
 }
4469
 
4472
 
4470
 #ifdef SCARA
4473
 #ifdef SCARA

Loading…
Cancel
Save