diff --git a/Marlin/src/feature/tmc_util.h b/Marlin/src/feature/tmc_util.h index d90efba6b..6b5ca8daa 100644 --- a/Marlin/src/feature/tmc_util.h +++ b/Marlin/src/feature/tmc_util.h @@ -160,7 +160,7 @@ class TMCMarlin : public TMC2208Stepper, #if STEALTHCHOP_ENABLED inline void refresh_stepping_mode() { en_spreadCycle(!this->stored.stealthChop_enabled); } - inline bool get_stealthChop_status() { !this->en_spreadCycle(); } + inline bool get_stealthChop_status() { return !this->en_spreadCycle(); } #endif #if HAS_LCD_MENU diff --git a/Marlin/src/lcd/extensible_ui/ui_api.cpp b/Marlin/src/lcd/extensible_ui/ui_api.cpp index 491650c31..417adf9e7 100644 --- a/Marlin/src/lcd/extensible_ui/ui_api.cpp +++ b/Marlin/src/lcd/extensible_ui/ui_api.cpp @@ -71,6 +71,10 @@ #include "../../module/printcounter.h" #endif +#if HAS_TRINAMIC && HAS_LCD_MENU + #include "../../feature/tmc_util.h" +#endif + #include "ui_api.h" #if ENABLED(BACKLASH_GCODE) @@ -699,7 +703,7 @@ void MarlinUI::init() { SET_INPUT_PULLUP(SD_DETECT_PIN); #endif - #if HAS_TRINAMIC + #if HAS_TRINAMIC && HAS_LCD_MENU init_tmc_section(); #endif