Add option to fix E/D ratio

Work around for slicers producing buggy gcode.
This commit is contained in:
Sebastianv650
2017-02-27 18:53:43 +01:00
committed by Scott Lahteine
parent eeb490221f
commit de6c40ed8f
20 changed files with 474 additions and 15 deletions

View File

@ -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
/**