Path: fix grbl_post postamble parameter handling

This commit is contained in:
Sabin Iacob
2019-03-16 19:57:28 +02:00
committed by wmayer
parent 891988f4fd
commit b38da0afa0

View File

@@ -137,7 +137,7 @@ def processArguments(argstring):
if not args.preamble is None:
PREAMBLE = args.preamble
if not args.postamble is None:
POSTAMBLE = args.postamble
POSTAMBLE = args.postamble.replace('\\n', '\n')
if not args.tool_change is None:
OUTPUT_TOOL_CHANGE = int(args.tool_change) > 0
SUPPRESS_TOOL_CHANGE = min(1, int(args.tool_change) - 1)