From 74bcde6212a15f35059a6598dcb02e855abcd25a Mon Sep 17 00:00:00 2001 From: Jyers Date: Mon, 9 Aug 2021 12:56:45 -0400 Subject: [PATCH] Assisted Tramming Center Position Fix --- Marlin/src/lcd/e3v2/creality/creality_dwin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/lcd/e3v2/creality/creality_dwin.cpp b/Marlin/src/lcd/e3v2/creality/creality_dwin.cpp index e5a7a25ecc89..f6a86c6d5a3a 100644 --- a/Marlin/src/lcd/e3v2/creality/creality_dwin.cpp +++ b/Marlin/src/lcd/e3v2/creality/creality_dwin.cpp @@ -1477,7 +1477,7 @@ void CrealityDWINClass::Menu_Item_Handler(uint8_t menu, uint8_t item, bool draw/ Popup_Handler(MoveWait); if (use_probe) { #if HAS_BED_PROBE - sprintf_P(cmd, PSTR("G0 F4000\nG0 Z10\nG0 X%s Y%s"), dtostrf(X_MAX_POS/2.0f - probe.offset.x, 1, 3, str_1), dtostrf(Y_MAX_POS/2.0f - probe.offset.y, 1, 3, str_2)); + sprintf_P(cmd, PSTR("G0 F4000\nG0 Z10\nG0 X%s Y%s"), dtostrf((X_BED_SIZE + X_MIN_POS)/2.0f - probe.offset.x, 1, 3, str_1), dtostrf((Y_BED_SIZE + Y_MIN_POS)/2.0f - probe.offset.y, 1, 3, str_2)); gcode.process_subcommands_now_P(cmd); planner.synchronize(); Popup_Handler(ManualProbing);