From 9b472a02e9e34bc7c2ac627e2d765c23ae0e418c Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 21 Aug 2024 18:09:43 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20PROBE=5FTARE=5FMENU?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/Configuration.h | 1 + Marlin/Configuration_adv.h | 4 ++-- Marlin/src/lcd/menu/menu_bed_leveling.cpp | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index 557ba6a089..404a1422ee 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -1640,6 +1640,7 @@ #define PROBE_TARE_DELAY 200 // (ms) Delay after tare before #define PROBE_TARE_STATE HIGH // State to write pin for tare //#define PROBE_TARE_PIN PA5 // Override default pin + //#define PROBE_TARE_MENU // Display a menu item to tare the probe #if ENABLED(PROBE_ACTIVATION_SWITCH) //#define PROBE_TARE_ONLY_WHILE_INACTIVE // Fail to tare/probe if PROBE_ACTIVATION_SWITCH is active #endif diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index 08db885be3..0813b45252 100644 --- a/Marlin/Configuration_adv.h +++ b/Marlin/Configuration_adv.h @@ -305,8 +305,8 @@ * THERMAL_PROTECTION_HYSTERESIS and/or THERMAL_PROTECTION_PERIOD */ #if ALL(HAS_HOTEND, THERMAL_PROTECTION_HOTENDS) - #define THERMAL_PROTECTION_PERIOD 40 // (seconds) - #define THERMAL_PROTECTION_HYSTERESIS 4 // (°C) + #define THERMAL_PROTECTION_PERIOD 40 // (seconds) + #define THERMAL_PROTECTION_HYSTERESIS 4 // (°C) //#define ADAPTIVE_FAN_SLOWING // Slow down the part-cooling fan if the temperature drops #if ENABLED(ADAPTIVE_FAN_SLOWING) diff --git a/Marlin/src/lcd/menu/menu_bed_leveling.cpp b/Marlin/src/lcd/menu/menu_bed_leveling.cpp index 9fb9813ee5..6a100de598 100644 --- a/Marlin/src/lcd/menu/menu_bed_leveling.cpp +++ b/Marlin/src/lcd/menu/menu_bed_leveling.cpp @@ -296,6 +296,11 @@ void menu_bed_leveling() { SUBMENU(MSG_PROBE_WIZARD, goto_probe_offset_wizard); #endif + // Tare the probe on-demand + #if ENABLED(PROBE_TARE_MENU) + ACTION_ITEM(MSG_TARE_PROBE, probe.tare); + #endif + #if ENABLED(LCD_BED_TRAMMING) SUBMENU(MSG_BED_TRAMMING, _lcd_bed_tramming); #endif