Apply SERIAL_FLUSH macro
This commit is contained in:
@ -437,7 +437,7 @@ inline bool turn_on_heaters() {
|
||||
SERIAL_EOL();
|
||||
}
|
||||
idle();
|
||||
MYSERIAL0.flush(); // Prevent host M105 buffer overrun.
|
||||
SERIAL_FLUSH(); // Prevent host M105 buffer overrun.
|
||||
}
|
||||
#if ENABLED(ULTRA_LCD)
|
||||
}
|
||||
@ -460,7 +460,7 @@ inline bool turn_on_heaters() {
|
||||
SERIAL_EOL();
|
||||
}
|
||||
idle();
|
||||
MYSERIAL0.flush(); // Prevent host M105 buffer overrun.
|
||||
SERIAL_FLUSH(); // Prevent host M105 buffer overrun.
|
||||
}
|
||||
|
||||
#if ENABLED(ULTRA_LCD)
|
||||
@ -809,12 +809,12 @@ void GcodeSuite::G26() {
|
||||
|
||||
|
||||
print_line_from_here_to_there(rx, ry, g26_layer_height, xe, ye, g26_layer_height);
|
||||
MYSERIAL0.flush(); // Prevent host M105 buffer overrun.
|
||||
SERIAL_FLUSH(); // Prevent host M105 buffer overrun.
|
||||
}
|
||||
if (look_for_lines_to_connect())
|
||||
goto LEAVE;
|
||||
}
|
||||
MYSERIAL0.flush(); // Prevent host M105 buffer overrun.
|
||||
SERIAL_FLUSH(); // Prevent host M105 buffer overrun.
|
||||
} while (--g26_repeats && location.x_index >= 0 && location.y_index >= 0);
|
||||
|
||||
LEAVE:
|
||||
|
Reference in New Issue
Block a user