From fd84ec352396f9294560555d5453472b2ff998e1 Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Fri, 2 Jun 2023 11:16:11 +0200 Subject: [PATCH] Add TODO in case A31 - Adjust all Probe Points --- .../src/lcd/extui/knutwurst/anycubic_touchscreen.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp b/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp index c28ec04e..4bcf3387 100755 --- a/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp +++ b/Marlin/src/lcd/extui/knutwurst/anycubic_touchscreen.cpp @@ -1608,10 +1608,13 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) { else { if (CodeSeen('S')) { // Set offset (adjusts all points by value) - float Zshift = CodeValue(); - setSoftEndstopState(false); // disable endstops - // Allow temporary Z position nudging during print - // From the leveling panel use the all points UI to adjust the print pos. + // TODO: Is this the correct value? Old Code: + // int8_t tokenpos = FindToken('S'); + // if (tokenpos >= 0) { + // float Zshift = atof(&panel_command[tokenpos+1]); + + float Zshift = CodeValue(); + setSoftEndstopState(false); if (isPrinting()) { #if ENABLED(ANYCUBIC_TFT_DEBUG) SERIAL_ECHOLNPGM("Change Zoffset from:", live_Zoffset, " to ", live_Zoffset + Zshift);