BugFixes
This commit is contained in:
@@ -106,7 +106,7 @@ class RobotController {
|
||||
return;
|
||||
}
|
||||
|
||||
if (cmd === 'M92') {
|
||||
if (cmd === 'M92' || cmd === 'G92') {
|
||||
robot.createMotorPosition();
|
||||
if (Number.isFinite(params.X)) { robot.xMotor = params.X; robot.xMotorChanged = true; }
|
||||
if (Number.isFinite(params.Y)) { robot.alpha = params.Y; robot.yMotorChanged = true; }
|
||||
|
||||
@@ -544,7 +544,7 @@ module.exports = class TelnetSenderGRBL extends SenderInterface {
|
||||
|
||||
|
||||
|
||||
if(this.aAxisGrbl == "x" && mNew.xMotorChanged && Number.isFinite(mNew.y)){
|
||||
if(this.aAxisGrbl == "x" && mNew.xMotorChanged && Number.isFinite(mNew.x)){
|
||||
data += " a" + (mNew.y * 180 / Math.PI).toFixed(2).toString();
|
||||
}
|
||||
if(this.aAxisGrbl == "y" && mNew.yMotorChanged && Number.isFinite(mNew.y)){
|
||||
|
||||
Reference in New Issue
Block a user