Browse Source

Follow up fixes to #12884 (#12940)

Marcio Teixeira 5 years ago
parent
commit
f4c16e683b
2 changed files with 6 additions and 2 deletions
  1. 1
    1
      Marlin/src/feature/tmc_util.h
  2. 5
    1
      Marlin/src/lcd/extensible_ui/ui_api.cpp

+ 1
- 1
Marlin/src/feature/tmc_util.h View File

@@ -160,7 +160,7 @@ class TMCMarlin<TMC2208Stepper, AXIS_LETTER, DRIVER_ID> : public TMC2208Stepper,
160 160
 
161 161
     #if STEALTHCHOP_ENABLED
162 162
       inline void refresh_stepping_mode() { en_spreadCycle(!this->stored.stealthChop_enabled); }
163
-      inline bool get_stealthChop_status() { !this->en_spreadCycle(); }
163
+      inline bool get_stealthChop_status() { return !this->en_spreadCycle(); }
164 164
     #endif
165 165
 
166 166
     #if HAS_LCD_MENU

+ 5
- 1
Marlin/src/lcd/extensible_ui/ui_api.cpp View File

@@ -71,6 +71,10 @@
71 71
   #include "../../module/printcounter.h"
72 72
 #endif
73 73
 
74
+#if HAS_TRINAMIC && HAS_LCD_MENU
75
+  #include "../../feature/tmc_util.h"
76
+#endif
77
+
74 78
 #include "ui_api.h"
75 79
 
76 80
 #if ENABLED(BACKLASH_GCODE)
@@ -699,7 +703,7 @@ void MarlinUI::init() {
699 703
     SET_INPUT_PULLUP(SD_DETECT_PIN);
700 704
   #endif
701 705
 
702
-  #if HAS_TRINAMIC
706
+  #if HAS_TRINAMIC && HAS_LCD_MENU
703 707
     init_tmc_section();
704 708
   #endif
705 709
 

Loading…
Cancel
Save