Fixed infinite loop on bad file

This commit is contained in:
DocWibbleyWobbley 2024-08-08 11:26:12 +03:00
parent 3108f7f6f1
commit 2f6865431f

View File

@ -282,7 +282,7 @@ int main(int argc, char **argv)
speed = 0;
file.open(fname);
while (!file.eof())
while (file.good())
{
getline(file, line);
if (!is_gcode(remove_comments(line)))