1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

Merge pull request #2136 from thinkyhead/M303_suppress_error

Suppress the line mismatch error after M303
This commit is contained in:
Scott Lahteine 2015-05-21 16:46:30 -07:00
commit 70d2f48d4e

View File

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