瀏覽代碼

Better edit range for Linear Advance K (#20155)

Philippe Cayrol 4 年之前
父節點
當前提交
caeac3851a
No account linked to committer's email address
共有 3 個文件被更改,包括 7 次插入7 次删除
  1. 1
    1
      Marlin/src/lcd/extui/ui_api.cpp
  2. 4
    4
      Marlin/src/lcd/menu/menu_advanced.cpp
  3. 2
    2
      Marlin/src/lcd/menu/menu_tune.cpp

+ 1
- 1
Marlin/src/lcd/extui/ui_api.cpp 查看文件

626
 
626
 
627
     void setLinearAdvance_mm_mm_s(const float value, const extruder_t extruder) {
627
     void setLinearAdvance_mm_mm_s(const float value, const extruder_t extruder) {
628
       if (extruder < EXTRUDERS)
628
       if (extruder < EXTRUDERS)
629
-        planner.extruder_advance_K[extruder - E0] = constrain(value, 0, 999);
629
+        planner.extruder_advance_K[extruder - E0] = constrain(value, 0, 10);
630
     }
630
     }
631
   #endif
631
   #endif
632
 
632
 

+ 4
- 4
Marlin/src/lcd/menu/menu_advanced.cpp 查看文件

110
 
110
 
111
     #if ENABLED(LIN_ADVANCE)
111
     #if ENABLED(LIN_ADVANCE)
112
       #if EXTRUDERS == 1
112
       #if EXTRUDERS == 1
113
-        EDIT_ITEM(float42_52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
113
+        EDIT_ITEM(float42_52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 10);
114
       #elif HAS_MULTI_EXTRUDER
114
       #elif HAS_MULTI_EXTRUDER
115
         LOOP_L_N(n, EXTRUDERS)
115
         LOOP_L_N(n, EXTRUDERS)
116
-          EDIT_ITEM_N(float42_52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
116
+          EDIT_ITEM_N(float42_52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 10);
117
       #endif
117
       #endif
118
     #endif
118
     #endif
119
 
119
 
587
     SUBMENU(MSG_FILAMENT, menu_advanced_filament);
587
     SUBMENU(MSG_FILAMENT, menu_advanced_filament);
588
   #elif ENABLED(LIN_ADVANCE)
588
   #elif ENABLED(LIN_ADVANCE)
589
     #if EXTRUDERS == 1
589
     #if EXTRUDERS == 1
590
-      EDIT_ITEM(float42_52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
590
+      EDIT_ITEM(float42_52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 10);
591
     #elif HAS_MULTI_EXTRUDER
591
     #elif HAS_MULTI_EXTRUDER
592
       LOOP_L_N(n, E_STEPPERS)
592
       LOOP_L_N(n, E_STEPPERS)
593
-        EDIT_ITEM_N(float42_52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
593
+        EDIT_ITEM_N(float42_52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 10);
594
     #endif
594
     #endif
595
   #endif
595
   #endif
596
 
596
 

+ 2
- 2
Marlin/src/lcd/menu/menu_tune.cpp 查看文件

202
   //
202
   //
203
   #if ENABLED(LIN_ADVANCE) && DISABLED(SLIM_LCD_MENUS)
203
   #if ENABLED(LIN_ADVANCE) && DISABLED(SLIM_LCD_MENUS)
204
     #if EXTRUDERS == 1
204
     #if EXTRUDERS == 1
205
-      EDIT_ITEM(float42_52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
205
+      EDIT_ITEM(float42_52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 10);
206
     #elif HAS_MULTI_EXTRUDER
206
     #elif HAS_MULTI_EXTRUDER
207
       LOOP_L_N(n, EXTRUDERS)
207
       LOOP_L_N(n, EXTRUDERS)
208
-        EDIT_ITEM_N(float42_52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
208
+        EDIT_ITEM_N(float42_52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 10);
209
     #endif
209
     #endif
210
   #endif
210
   #endif
211
 
211
 

Loading…
取消
儲存