Claude Ultracode Fixes

This commit is contained in:
chk
2026-06-08 18:17:53 +02:00
parent 7595bae8a1
commit 10d306b7d4
9 changed files with 46 additions and 14 deletions

View File

@@ -387,7 +387,7 @@ module.exports = class TelnetSenderGRBL extends SenderInterface {
// abhngig vom FluidNC und dessen speed interpretation ist.
}
if(data.indexOf("G90") == -1 && data.indexOf("G1 ") > 0){
if(data.indexOf("G90") == -1 && data.indexOf("G1 ") !== -1){
data = "G90 " + data;
}

View File

@@ -387,8 +387,8 @@ module.exports = class WSSenderGrbl extends SenderInterface {
data += " f" + (this.maxSpeedF.toFixed(2).toString());
if (data.length > 3) {
if (data.indexOf("G90") == -1) {
if (this.ws && data.length > 3) {
if (data.indexOf("G90") == -1 && data.indexOf("G1 ") !== -1) {
data = "G90 " + data;
}
console.log("Driver send to 🤖 " + this.urlGRBLstr + " the message: " + data);