Claude Ultracode Fixes
This commit is contained in:
@@ -25,8 +25,8 @@ describe("TelnetSenderGRBL.execCommand", () => {
|
||||
|
||||
sender.execCommand("G1", mOld, mNew);
|
||||
|
||||
// ✅ verify output
|
||||
expect(sender.tSocket.written).toBe("G1 x12.34 y90.00 z-90.00 f2300.00\r\n");
|
||||
// ✅ verify output — G1 moves must be sent in absolute mode (G90 prefix)
|
||||
expect(sender.tSocket.written).toBe("G90 G1 x12.34 y90.00 z-90.00 f2300.00\r\n");
|
||||
});
|
||||
|
||||
|
||||
@@ -54,8 +54,8 @@ describe("TelnetSenderGRBL.execCommand", () => {
|
||||
|
||||
sender.execCommand("G1", mOld, mNew);
|
||||
|
||||
// ✅ verify output
|
||||
expect(sender.tSocket.written).toBe("G1 x22.50 f2300.00\r\n");
|
||||
// ✅ verify output — G1 moves must be sent in absolute mode (G90 prefix)
|
||||
expect(sender.tSocket.written).toBe("G90 G1 x22.50 f2300.00\r\n");
|
||||
});
|
||||
|
||||
test("writes correct G-code G92 to mocked tSocket", () => {
|
||||
|
||||
Reference in New Issue
Block a user