Add option to fix E/D ratio
Work around for slicers producing buggy gcode.
This commit is contained in:
committed by
Scott Lahteine
parent
eeb490221f
commit
de6c40ed8f
@ -210,6 +210,7 @@ class Planner {
|
||||
#if ENABLED(LIN_ADVANCE)
|
||||
static float position_float[NUM_AXIS];
|
||||
static float extruder_advance_k;
|
||||
static float E_D_ratio;
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTRA_LCD)
|
||||
@ -266,7 +267,9 @@ class Planner {
|
||||
#endif
|
||||
|
||||
#if ENABLED(LIN_ADVANCE)
|
||||
void advance_M905(const float &k);
|
||||
static void set_extruder_advance_k(const float &k) { extruder_advance_k = k; };
|
||||
static float get_extruder_advance_k() { return extruder_advance_k; };
|
||||
static void set_E_D_ratio(const float &ratio) { E_D_ratio = ratio; };
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user