Multiple line Gcode commands must be sent as an array of strings.
This commit is contained in:
parent
a9edc04a47
commit
6c273f423c
|
@ -62,8 +62,9 @@ $(function() {
|
|||
}
|
||||
|
||||
expanded = self.macro.replace(paramObjRegex, replaceParams)
|
||||
expanded = expanded.replace(/(?:\r\n|\r|\n)/g, " ");
|
||||
|
||||
expanded = "[\"" + expanded + "\"]"
|
||||
expanded = expanded.replace(/(?:\r\n|\r|\n)/g, "\",\"");
|
||||
|
||||
OctoPrint.control.sendGcode(expanded);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue