Skip to content
Snippets Groups Projects
Commit 65ba699b authored by Thomas Oster's avatar Thomas Oster
Browse files

Fix: LAOS: Space in TFTP-Filename leads to BadPacketException -> Removed spaces from filenames

parent 67d8db11
No related branches found
No related tags found
No related merge requests found
......@@ -576,7 +576,7 @@ public class LaosCutter extends LaserCutter
tftp.open();
pl.taskChanged(this, "sending");
ByteArrayInputStream bain = new ByteArrayInputStream(buffer.toByteArray());
tftp.sendFile(job.getName()+".lgc", TFTP.BINARY_MODE, bain, this.getHostname(), this.getPort());
tftp.sendFile(job.getName().replace(" ", "") +".lgc", TFTP.BINARY_MODE, bain, this.getHostname(), this.getPort());
tftp.close();
bain.close();
pl.taskChanged(this, "sent.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment