|
|
@ -42,10 +42,10 @@ def rewrite_lines(inlines):
|
|
|
|
# Home the board after bed is setup
|
|
|
|
# Home the board after bed is setup
|
|
|
|
outlines = "G28\n"
|
|
|
|
outlines = "G28\n"
|
|
|
|
|
|
|
|
|
|
|
|
minx = float('inf')
|
|
|
|
minx = float("inf")
|
|
|
|
miny = float('inf')
|
|
|
|
miny = float("inf")
|
|
|
|
maxx = float('-inf')
|
|
|
|
maxx = float("-inf")
|
|
|
|
maxy = float('-inf')
|
|
|
|
maxy = float("-inf")
|
|
|
|
|
|
|
|
|
|
|
|
for line in inlines:
|
|
|
|
for line in inlines:
|
|
|
|
x, y = get_xy(line)
|
|
|
|
x, y = get_xy(line)
|
|
|
@ -125,5 +125,5 @@ def rewrite_gcode(infile, outfile):
|
|
|
|
|
|
|
|
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
if __name__ == "__main__":
|
|
|
|
sys.exit(rewrite_gcode(sys.argv[1], sys.argv[2]))
|
|
|
|
sys.exit(rewrite_gcode(sys.argv[1], sys.argv[2]))
|
|
|
|