Spacing in calculate_volumetric_multiplier(s)
This commit is contained in:
parent
2af559cca3
commit
c9a3eb0c1a
@ -4695,12 +4695,12 @@ bool setTargetedHotend(int code){
|
|||||||
|
|
||||||
|
|
||||||
float calculate_volumetric_multiplier(float diameter) {
|
float calculate_volumetric_multiplier(float diameter) {
|
||||||
if (!volumetric_enabled || diameter == 0) return 1.0;
|
if (!volumetric_enabled || diameter == 0) return 1.0;
|
||||||
float d2 = diameter * 0.5;
|
float d2 = diameter * 0.5;
|
||||||
return 1.0 / (M_PI * d2 * d2);
|
return 1.0 / (M_PI * d2 * d2);
|
||||||
}
|
}
|
||||||
|
|
||||||
void calculate_volumetric_multipliers() {
|
void calculate_volumetric_multipliers() {
|
||||||
for (int i=0; i<EXTRUDERS; i++)
|
for (int i=0; i<EXTRUDERS; i++)
|
||||||
volumetric_multiplier[i] = calculate_volumetric_multiplier(filament_size[i]);
|
volumetric_multiplier[i] = calculate_volumetric_multiplier(filament_size[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user