Claude Ultracode Fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user