mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-19 08:08:25 +00:00
✨ VOLUMETRIC_EXTRUDER_LIMIT_MAX (#25884)
This commit is contained in:
parent
ad112b4d3d
commit
863198a73f
3 changed files with 6 additions and 5 deletions
|
@ -3806,6 +3806,7 @@
|
|||
* A non-zero value activates Volume-based Extrusion Limiting.
|
||||
*/
|
||||
#define DEFAULT_VOLUMETRIC_EXTRUDER_LIMIT 0.00 // (mm^3/sec)
|
||||
#define VOLUMETRIC_EXTRUDER_LIMIT_MAX 20 // (mm^3/sec)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -64,10 +64,10 @@
|
|||
if (parser.seenval('L')) {
|
||||
// Set volumetric limit (in mm^3/sec)
|
||||
const float lval = parser.value_float();
|
||||
if (WITHIN(lval, 0, 20))
|
||||
if (WITHIN(lval, 0, VOLUMETRIC_EXTRUDER_LIMIT_MAX))
|
||||
planner.set_volumetric_extruder_limit(target_extruder, lval);
|
||||
else
|
||||
SERIAL_ECHOLNPGM("?L value out of range (0-20).");
|
||||
SERIAL_ECHOLNPGM("?L value out of range (0-" STRINGIFY(VOLUMETRIC_EXTRUDER_LIMIT_MAX) ").");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -120,10 +120,10 @@ void menu_backlash();
|
|||
EDIT_ITEM(bool, MSG_VOLUMETRIC_ENABLED, &parser.volumetric_enabled, planner.calculate_volumetric_multipliers);
|
||||
|
||||
#if ENABLED(VOLUMETRIC_EXTRUDER_LIMIT)
|
||||
EDIT_ITEM_FAST(float42_52, MSG_VOLUMETRIC_LIMIT, &planner.volumetric_extruder_limit[active_extruder], 0.0f, 20.0f, planner.calculate_volumetric_extruder_limits);
|
||||
EDIT_ITEM_FAST(float42_52, MSG_VOLUMETRIC_LIMIT, &planner.volumetric_extruder_limit[active_extruder], 0.0f, float(VOLUMETRIC_EXTRUDER_LIMIT_MAX), planner.calculate_volumetric_extruder_limits);
|
||||
#if HAS_MULTI_EXTRUDER
|
||||
EXTRUDER_LOOP()
|
||||
EDIT_ITEM_FAST_N(float42_52, e, MSG_VOLUMETRIC_LIMIT_E, &planner.volumetric_extruder_limit[e], 0.0f, 20.00f, planner.calculate_volumetric_extruder_limits);
|
||||
EDIT_ITEM_FAST_N(float42_52, e, MSG_VOLUMETRIC_LIMIT_E, &planner.volumetric_extruder_limit[e], 0.0f, float(VOLUMETRIC_EXTRUDER_LIMIT_MAX), planner.calculate_volumetric_extruder_limits);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue