|
@@ -251,8 +251,6 @@ class Planner {
|
251
|
251
|
// Manage fans, paste pressure, etc.
|
252
|
252
|
static void check_axes_activity();
|
253
|
253
|
|
254
|
|
- static void calculate_volumetric_multipliers();
|
255
|
|
-
|
256
|
254
|
/**
|
257
|
255
|
* Number of moves currently in the planner
|
258
|
256
|
*/
|
|
@@ -260,6 +258,16 @@ class Planner {
|
260
|
258
|
|
261
|
259
|
static bool is_full() { return (block_buffer_tail == BLOCK_MOD(block_buffer_head + 1)); }
|
262
|
260
|
|
|
261
|
+ // Update multipliers based on new diameter measurements
|
|
262
|
+ static void calculate_volumetric_multipliers();
|
|
263
|
+
|
|
264
|
+ FORCE_INLINE static void set_filament_size(const uint8_t e, const float &v) {
|
|
265
|
+ filament_size[e] = v;
|
|
266
|
+ // make sure all extruders have some sane value for the filament size
|
|
267
|
+ for (uint8_t i = 0; i < COUNT(filament_size); i++)
|
|
268
|
+ if (!filament_size[i]) filament_size[i] = DEFAULT_NOMINAL_FILAMENT_DIA;
|
|
269
|
+ }
|
|
270
|
+
|
263
|
271
|
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
|
264
|
272
|
|
265
|
273
|
/**
|