Commit a1cbd121 authored by kliment's avatar kliment

Change filename truncation to be safer

parent d088e2d3
import printcore,time,sys,os import printcore,time,sys,os
def dosify(name): def dosify(name):
return name[:8]+".g" return name.split(".")[0][:8]+".g"
def blupload(printer,filename,path): def blupload(printer,filename,path):
printer.send_now("M28 "+dosify(filename)) printer.send_now("M28 "+dosify(filename))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment