fix for multispace messages

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

Wyświetl plik

@ -791,8 +791,7 @@ bool GCode::parseAscii(char *line,bool fromSerial)
text = pos;
while (*pos)
{
if((M != 117 && M != 20 && *pos==' ') || *pos=='*') break;
if((M != 118 && M != 20 && *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 null, also skips checksum