Closed alromh87 closed 10 years ago
Hi, I have added support for modal G1 as output by pcb2gcode, and would like to have it included in the main code, here are the relevant lines:
diff --git a/src/cnc/gcode/controller/CNCCommand.java b/src/cnc/gcode/controller/CNCCommand.java index aaa30d4..f0485af 100644 --- a/src/cnc/gcode/controller/CNCCommand.java +++ b/src/cnc/gcode/controller/CNCCommand.java @@ -269,6 +269,22 @@ public class CNCCommand { } else {
if(!p.get(0).isint) { state=State.ERROR;
diff --git a/src/cnc/gcode/controller/CommandParsing.java b/src/cnc/gcode/controller/CommandParsing.java index 23edabc..ae2fd19 100644 --- a/src/cnc/gcode/controller/CommandParsing.java +++ b/src/cnc/gcode/controller/CommandParsing.java @@ -168,6 +168,16 @@ public class CommandParsing { return parameters.contains(new Parameter(letter)); }
public Parameter get(int index) { return parameters.get(index);
Thnaks
Hi, I have added support for modal G1 as output by pcb2gcode, and would like to have it included in the main code, here are the relevant lines:
diff --git a/src/cnc/gcode/controller/CNCCommand.java b/src/cnc/gcode/controller/CNCCommand.java index aaa30d4..f0485af 100644 --- a/src/cnc/gcode/controller/CNCCommand.java +++ b/src/cnc/gcode/controller/CNCCommand.java @@ -269,6 +269,22 @@ public class CNCCommand { } else {
diff --git a/src/cnc/gcode/controller/CommandParsing.java b/src/cnc/gcode/controller/CommandParsing.java index 23edabc..ae2fd19 100644 --- a/src/cnc/gcode/controller/CommandParsing.java +++ b/src/cnc/gcode/controller/CommandParsing.java @@ -168,6 +168,16 @@ public class CommandParsing { return parameters.contains(new Parameter(letter)); }
public Parameter get(int index) { return parameters.get(index);
Thnaks