Pārlūkot izejas kodu

Fix NO_VOLUMETRICS bug

Scott Lahteine 6 gadus atpakaļ
vecāks
revīzija
5effe1590c

+ 3
- 0
Marlin/src/module/configuration_store.cpp Parādīt failu

@@ -241,6 +241,9 @@ void MarlinSettings::postprocess() {
241 241
 
242 242
   #if DISABLED(NO_VOLUMETRICS)
243 243
     planner.calculate_volumetric_multipliers();
244
+  #else
245
+    for (uint8_t i = COUNT(planner.e_factor); i--;)
246
+      planner.refresh_e_factor(i);
244 247
   #endif
245 248
 
246 249
   #if HAS_HOME_OFFSET || ENABLED(DUAL_X_CARRIAGE)

+ 1
- 1
Marlin/src/module/planner.cpp Parādīt failu

@@ -105,7 +105,7 @@ float Planner::max_feedrate_mm_s[XYZE_N], // Max speeds in mm per second
105 105
 
106 106
 int16_t Planner::flow_percentage[EXTRUDERS] = ARRAY_BY_EXTRUDERS1(100); // Extrusion factor for each extruder
107 107
 
108
-float Planner::e_factor[EXTRUDERS];               // The flow percentage and volumetric multiplier combine to scale E movement
108
+float Planner::e_factor[EXTRUDERS] = ARRAY_BY_EXTRUDERS1(1.0); // The flow percentage and volumetric multiplier combine to scale E movement
109 109
 
110 110
 #if DISABLED(NO_VOLUMETRICS)
111 111
   float Planner::filament_size[EXTRUDERS],          // diameter of filament (in millimeters), typically around 1.75 or 2.85, 0 disables the volumetric calculations for the extruder

Notiek ielāde…
Atcelt
Saglabāt