From 7e0bf88431e864f11569f00ae7df01c3b77cd721 Mon Sep 17 00:00:00 2001 From: 3d-gussner <3d.gussner@gmail.com> Date: Wed, 22 Mar 2023 12:30:16 +0100 Subject: [PATCH] Use `G28 W` only --- Firmware/Marlin_main.cpp | 10 +++++----- Firmware/messages.cpp | 2 +- Firmware/messages.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 3cee10a55..554d3f6ca 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -2809,7 +2809,7 @@ static void gcode_G80() // Push the commands to the front of the message queue in the reverse order! // There shall be always enough space reserved for these commands. repeatcommand_front(); // repeat G80 with all its parameters - enquecommand_front_P(G28W0); + enquecommand_front_P(G28W); return; } @@ -2842,7 +2842,7 @@ static void gcode_G80() temp_compensation_start(); run = true; repeatcommand_front(); // repeat G80 with all its parameters - enquecommand_front_P(G28W0); + enquecommand_front_P(G28W); return; } run = false; @@ -4736,7 +4736,7 @@ void process_commands() // Push the commands to the front of the message queue in the reverse order! // There shall be always enough space reserved for these commands. repeatcommand_front(); // repeat G76 with all its parameters - enquecommand_front_P(G28W0); + enquecommand_front_P(G28W); break; } lcd_show_fullscreen_message_and_wait_P(_i("Stable ambient temperature 21-26C is needed a rigid stand is required."));////MSG_TEMP_CAL_WARNING c=20 r=4 @@ -4881,7 +4881,7 @@ void process_commands() // Push the commands to the front of the message queue in the reverse order! // There shall be always enough space reserved for these commands. repeatcommand_front(); // repeat G76 with all its parameters - enquecommand_front_P(G28W0); + enquecommand_front_P(G28W); break; } puts_P(_N("PINDA probe calibration start")); @@ -10101,7 +10101,7 @@ void bed_analysis(float x_dimension, float y_dimension, int x_points_num, int y_ // There shall be always enough space reserved for these commands. repeatcommand_front(); // repeat G80 with all its parameters - enquecommand_front_P(G28W0); + enquecommand_front_P(G28W); enquecommand_front_P((PSTR("G1 Z5"))); return; } diff --git a/Firmware/messages.cpp b/Firmware/messages.cpp index 988a00d0c..ad9b2b2f3 100644 --- a/Firmware/messages.cpp +++ b/Firmware/messages.cpp @@ -231,7 +231,7 @@ const char MSG_UNKNOWN_CODE[] PROGMEM_N1 = "Unknown %c code: %s\n"; // Common G-gcodes const char G1_E_F2700[] PROGMEM_N1 = "G1 E%-0.3f F2700"; -const char G28W0[] PROGMEM_N1 = "G28 W0"; +const char G28W[] PROGMEM_N1 = "G28 W"; const char MSG_M23[] PROGMEM_N1 = "M23 %s"; const char MSG_M24[] PROGMEM_N1 = "M24"; const char MSG_M83[] PROGMEM_N1 = "M83"; diff --git a/Firmware/messages.h b/Firmware/messages.h index 81ba55bd8..d7a1bc997 100644 --- a/Firmware/messages.h +++ b/Firmware/messages.h @@ -237,7 +237,7 @@ extern const char MSG_UNKNOWN_CODE[]; // Common G-gcodes extern const char G1_E_F2700[]; -extern const char G28W0[]; +extern const char G28W[]; extern const char MSG_M23[]; extern const char MSG_M24[]; extern const char MSG_M83[];