From b88957e0d4e9137c0352aa5def824574f1f05373 Mon Sep 17 00:00:00 2001 From: Tannoo Date: Wed, 7 Jun 2017 06:28:33 -0600 Subject: [PATCH] Leveling type in About Printer Show the Leveling system in use on the About Printer screen. --- Marlin/language_en.h | 15 +++++++++++++++ Marlin/ultralcd.cpp | 11 +++++++++++ 2 files changed, 26 insertions(+) diff --git a/Marlin/language_en.h b/Marlin/language_en.h index 6f79272d7..654cfedf6 100644 --- a/Marlin/language_en.h +++ b/Marlin/language_en.h @@ -688,6 +688,21 @@ #ifndef MSG_INFO_PRINTER_MENU #define MSG_INFO_PRINTER_MENU _UxGT("Printer Info") #endif +#ifndef MSG_3POINT_LEVELING + #define MSG_3POINT_LEVELING _UxGT("3-Point Leveling") +#endif +#ifndef MSG_LINEAR_LEVELING + #define MSG_LINEAR_LEVELING _UxGT("Linear Leveling") +#endif +#ifndef MSG_BILINEAR_LEVELING + #define MSG_BILINEAR_LEVELING _UxGT("Bilinear Leveling") +#endif +#ifndef MSG_UBL_LEVELING + #define MSG_UBL_LEVELING _UxGT("Unified Bed Leveling") +#endif +#ifndef MSG_MESH_LEVELING + #define MSG_MESH_LEVELING _UxGT("Mesh Leveling") +#endif #ifndef MSG_INFO_STATS_MENU #define MSG_INFO_STATS_MENU _UxGT("Printer Stats") #endif diff --git a/Marlin/ultralcd.cpp b/Marlin/ultralcd.cpp index 5b519493d..4dd267a56 100755 --- a/Marlin/ultralcd.cpp +++ b/Marlin/ultralcd.cpp @@ -3356,6 +3356,17 @@ void kill_screen(const char* lcd_msg) { STATIC_ITEM(MACHINE_NAME, true); // My3DPrinter STATIC_ITEM(WEBSITE_URL, true); // www.my3dprinter.com STATIC_ITEM(MSG_INFO_EXTRUDERS ": " STRINGIFY(EXTRUDERS), true); // Extruders: 2 + #if ENABLED(AUTO_BED_LEVELING_3POINT) + STATIC_ITEM(MSG_3POINT_LEVELING, true); // 3-Point Leveling + #elif ENABLED(AUTO_BED_LEVELING_LINEAR) + STATIC_ITEM(MSG_LINEAR_LEVELING, true); // Linear Leveling + #elif ENABLED(AUTO_BED_LEVELING_BILINEAR) + STATIC_ITEM(MSG_BILINEAR_LEVELING, true); // Bi-linear Leveling + #elif ENABLED(AUTO_BED_LEVELING_UBL) + STATIC_ITEM(MSG_UBL_LEVELING, true); // Unified Bed Leveling + #elif ENABLED(MESH_BED_LEVELING) + STATIC_ITEM(MSG_MESH_LEVELING, true); // Mesh Leveling + #endif END_SCREEN(); }