mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-08-07 14:03:56 -06:00
🚸 Adapt runout distance for FILAMENT_MOTION_SENSOR (#27540)
This commit is contained in:
parent
61649aa3c0
commit
8d864d797a
1 changed files with 6 additions and 3 deletions
|
@ -154,9 +154,12 @@ void menu_backlash();
|
|||
|
||||
#if HAS_FILAMENT_RUNOUT_DISTANCE
|
||||
editable.decimal = runout.runout_distance();
|
||||
EDIT_ITEM_FAST(float3, MSG_RUNOUT_DISTANCE_MM, &editable.decimal, 1, 999,
|
||||
[]{ runout.set_runout_distance(editable.decimal); }, true
|
||||
);
|
||||
auto set_runout_distance = []{ runout.set_runout_distance(editable.decimal); };
|
||||
#if ENABLED(FILAMENT_MOTION_SENSOR)
|
||||
EDIT_ITEM_FAST(float31, MSG_RUNOUT_DISTANCE_MM, &editable.decimal, 0.1, 10, set_runout_distance, true);
|
||||
#else
|
||||
EDIT_ITEM_FAST(float3, MSG_RUNOUT_DISTANCE_MM, &editable.decimal, 1, 999, set_runout_distance, true);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
END_MENU();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue