filecheck fix: we need to check buffered gcodes after finding end of gcode file

This commit is contained in:
PavelSindler 2017-11-02 18:40:22 +01:00
parent 32ee171a49
commit 6bdab7bf48
2 changed files with 1 additions and 2 deletions

View File

@ -1952,7 +1952,7 @@ static float probe_pt(float x, float y, float z_before) {
bool check_commands() {
bool end_command_found = false;
if (buflen)
while (buflen)
{
if ((code_seen("M84")) || (code_seen("M 84"))) end_command_found = true;
if (!cmdbuffer_front_already_processed)

View File

@ -5779,7 +5779,6 @@ static bool check_file(const char* filename) {
get_command();
result = check_commands();
}
cmdqueue_reset();
card.printingHasFinished();
strncpy_P(lcd_status_message, WELCOME_MSG, LCD_WIDTH);
return result;