Merge pull request #263 from PavelSindler/incomplete_file_fix

filecheck fix: check gcodes which remains in buffer after finding end of file
This commit is contained in:
PavelSindler 2017-11-03 16:02:16 +01:00 committed by GitHub
commit 30cbee774e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;