pull/345/head
netpipe 2019-04-23 20:40:47 -06:00
rodzic 65804088a3
commit cba3337b4e
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -683,8 +683,7 @@ bool GCode::parseAscii(char *line,bool fromSerial)
text = pos;
while (*pos)
{
if((M != 117 && *pos==' ') || *pos=='*') break;
if((M != 118 && *pos==' ') || *pos=='*') break;
if((M != 117 && M != 20 && M != 118 && *pos==' ') || *pos=='*') break;
pos++; // find a space as file name end
}
*pos = 0; // truncate filename by erasing space with nul, also skips checksum