Substitute LCD_SERIAL.println() with LCD_SERIAL.print(,2) to ensure display compatibility.
This commit is contained in:
@@ -1546,11 +1546,14 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
else if (CodeSeen('G')) { // Get current offset
|
else if (CodeSeen('G')) { // Get current offset
|
||||||
SENDLINE_PGM("A31V ");
|
if (isPrinting()) {
|
||||||
if (isPrinting())
|
SEND_PGM("A31V ");
|
||||||
LCD_SERIAL.println(live_Zoffset);
|
LCD_SERIAL.print(live_Zoffset, 2);
|
||||||
else {
|
SENDLINE_PGM("");
|
||||||
LCD_SERIAL.println(getZOffset_mm());
|
} else {
|
||||||
|
SEND_PGM("A31V ");
|
||||||
|
LCD_SERIAL.print(getZOffset_mm(), 2);
|
||||||
|
SENDLINE_PGM("");
|
||||||
selectedmeshpoint.x = selectedmeshpoint.y = 99;
|
selectedmeshpoint.x = selectedmeshpoint.y = 99;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1575,8 +1578,10 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
|
|||||||
babystepAxis_steps(steps, Z);
|
babystepAxis_steps(steps, Z);
|
||||||
live_Zoffset += Zshift;
|
live_Zoffset += Zshift;
|
||||||
}
|
}
|
||||||
SENDLINE_PGM("A31V ");
|
|
||||||
LCD_SERIAL.println(live_Zoffset);
|
SEND_PGM("A31V ");
|
||||||
|
LCD_SERIAL.print(live_Zoffset, 2);
|
||||||
|
SENDLINE_PGM("");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
GRID_LOOP(x, y) {
|
GRID_LOOP(x, y) {
|
||||||
@@ -1593,8 +1598,10 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
setZOffset_mm(currZOffset + Zshift);
|
setZOffset_mm(currZOffset + Zshift);
|
||||||
SENDLINE_PGM("A31V ");
|
|
||||||
LCD_SERIAL.println(getZOffset_mm());
|
SEND_PGM("A31V ");
|
||||||
|
LCD_SERIAL.print(getZOffset_mm(), 2);
|
||||||
|
SENDLINE_PGM("");
|
||||||
|
|
||||||
if (isAxisPositionKnown(Z)) {
|
if (isAxisPositionKnown(Z)) {
|
||||||
const float currZpos = getAxisPosition_mm(Z);
|
const float currZpos = getAxisPosition_mm(Z);
|
||||||
|
Reference in New Issue
Block a user