kopia lustrzana https://github.com/OpenBuilds/OpenBuilds-CONTROL
Fix for #359
rodzic
7304e024c5
commit
d88c0c2e69
4
index.js
4
index.js
|
@ -2431,6 +2431,8 @@ function parseFeedback(data) {
|
|||
aPos = parseFloat(wPos[3]).toFixed(config.posDecimals);
|
||||
status.machine.has4thAxis = true;
|
||||
}
|
||||
} else {
|
||||
status.machine.has4thAxis = false;
|
||||
}
|
||||
if (status.machine.has4thAxis) {
|
||||
status.machine.position.work.x = parseFloat(xPos);
|
||||
|
@ -2459,6 +2461,8 @@ function parseFeedback(data) {
|
|||
aPos = parseFloat(mPos[3]).toFixed(config.posDecimals);
|
||||
status.machine.has4thAxis = true;
|
||||
}
|
||||
} else {
|
||||
status.machine.has4thAxis = false;
|
||||
}
|
||||
if (status.machine.has4thAxis) {
|
||||
status.machine.position.work.x = parseFloat(parseFloat(xPos - status.machine.position.offset.x).toFixed(config.posDecimals));
|
||||
|
|
Ładowanie…
Reference in New Issue