|
@@ -43,6 +43,11 @@
|
43
|
43
|
#include "../../module/temperature.h"
|
44
|
44
|
#endif
|
45
|
45
|
|
|
46
|
+#ifdef FILAMENT_RUNOUT_DISTANCE_MM
|
|
47
|
+ #include "../../feature/runout.h"
|
|
48
|
+ float lcd_runout_distance_mm;
|
|
49
|
+#endif
|
|
50
|
+
|
46
|
51
|
void menu_tmc();
|
47
|
52
|
void menu_backlash();
|
48
|
53
|
|
|
@@ -214,6 +219,12 @@ void menu_backlash();
|
214
|
219
|
#endif // EXTRUDERS > 1
|
215
|
220
|
#endif
|
216
|
221
|
|
|
222
|
+ #ifdef FILAMENT_RUNOUT_DISTANCE_MM
|
|
223
|
+ MENU_ITEM_EDIT_CALLBACK(float3, MSG_RUNOUT_DISTANCE_MM, &lcd_runout_distance_mm, 1, 30, []{
|
|
224
|
+ runout.set_runout_distance(lcd_runout_distance_mm);
|
|
225
|
+ });
|
|
226
|
+ #endif
|
|
227
|
+
|
217
|
228
|
END_MENU();
|
218
|
229
|
}
|
219
|
230
|
|
|
@@ -603,6 +614,9 @@ void menu_backlash();
|
603
|
614
|
#endif // !SLIM_LCD_MENUS
|
604
|
615
|
|
605
|
616
|
void menu_advanced_settings() {
|
|
617
|
+ #ifdef FILAMENT_RUNOUT_DISTANCE_MM
|
|
618
|
+ lcd_runout_distance_mm = runout.runout_distance();
|
|
619
|
+ #endif
|
606
|
620
|
START_MENU();
|
607
|
621
|
MENU_BACK(MSG_CONFIGURATION);
|
608
|
622
|
|