|
@@ -6673,7 +6673,7 @@ Sigma_Exit:
|
|
|
{
|
|
|
if(code_seen(axis_codes[i]))
|
|
|
{
|
|
|
- if(i == 3) { // E
|
|
|
+ if(i == E_AXIS) { // E
|
|
|
float value = code_value();
|
|
|
if(value < 20.0) {
|
|
|
float factor = cs.axis_steps_per_unit[i] / value; // increase e constants if M92 E14 is given for netfab.
|
|
@@ -6682,6 +6682,7 @@ Sigma_Exit:
|
|
|
axis_steps_per_sqr_second[i] *= factor;
|
|
|
}
|
|
|
cs.axis_steps_per_unit[i] = value;
|
|
|
+ fsensor_set_axis_steps_per_unit(value);
|
|
|
}
|
|
|
else {
|
|
|
cs.axis_steps_per_unit[i] = code_value();
|
|
@@ -8429,7 +8430,6 @@ Sigma_Exit:
|
|
|
res_valid |= (i == E_AXIS) && ((res_new == 64) || (res_new == 128)); // resolutions valid for E only
|
|
|
if (res_valid)
|
|
|
{
|
|
|
-
|
|
|
st_synchronize();
|
|
|
uint16_t res = tmc2130_get_res(i);
|
|
|
tmc2130_set_res(i, res_new);
|
|
@@ -8446,6 +8446,8 @@ Sigma_Exit:
|
|
|
cs.axis_steps_per_unit[i] /= fac;
|
|
|
position[i] /= fac;
|
|
|
}
|
|
|
+ if (i == E_AXIS)
|
|
|
+ fsensor_set_axis_steps_per_unit(cs.axis_steps_per_unit[i]);
|
|
|
}
|
|
|
}
|
|
|
}
|