|
|
@ -877,6 +877,7 @@ void MarlinSettings::postprocess() {
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Linear Advance
|
|
|
|
// Linear Advance
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
_FIELD_TEST(planner_extruder_advance_K);
|
|
|
|
_FIELD_TEST(planner_extruder_advance_K);
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(LIN_ADVANCE)
|
|
|
|
#if ENABLED(LIN_ADVANCE)
|
|
|
@ -888,6 +889,10 @@ void MarlinSettings::postprocess() {
|
|
|
|
|
|
|
|
|
|
|
|
_FIELD_TEST(motor_current_setting);
|
|
|
|
_FIELD_TEST(motor_current_setting);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Motor Current PWM
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_MOTOR_CURRENT_PWM
|
|
|
|
#if HAS_MOTOR_CURRENT_PWM
|
|
|
|
for (uint8_t q = XYZ; q--;) EEPROM_WRITE(stepper.motor_current_setting[q]);
|
|
|
|
for (uint8_t q = XYZ; q--;) EEPROM_WRITE(stepper.motor_current_setting[q]);
|
|
|
|
#else
|
|
|
|
#else
|
|
|
@ -1408,6 +1413,8 @@ void MarlinSettings::postprocess() {
|
|
|
|
for (uint8_t q=TMC_AXES; q--;) EEPROM_READ(val);
|
|
|
|
for (uint8_t q=TMC_AXES; q--;) EEPROM_READ(val);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_FIELD_TEST(tmc_hybrid_threshold);
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(HYBRID_THRESHOLD)
|
|
|
|
#if ENABLED(HYBRID_THRESHOLD)
|
|
|
|
#define TMC_SET_PWMTHRS(A,Q) tmc_set_pwmthrs(stepper##Q, tmc_hybrid_threshold.Q, planner.axis_steps_per_mm[_AXIS(A)])
|
|
|
|
#define TMC_SET_PWMTHRS(A,Q) tmc_set_pwmthrs(stepper##Q, tmc_hybrid_threshold.Q, planner.axis_steps_per_mm[_AXIS(A)])
|
|
|
|
tmc_hybrid_threshold_t tmc_hybrid_threshold;
|
|
|
|
tmc_hybrid_threshold_t tmc_hybrid_threshold;
|
|
|
@ -1458,12 +1465,15 @@ void MarlinSettings::postprocess() {
|
|
|
|
for (uint8_t q=TMC_AXES; q--;) EEPROM_READ(thrs_val);
|
|
|
|
for (uint8_t q=TMC_AXES; q--;) EEPROM_READ(thrs_val);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/**
|
|
|
|
* TMC StallGuard threshold.
|
|
|
|
* TMC StallGuard threshold.
|
|
|
|
* X and X2 use the same value
|
|
|
|
* X and X2 use the same value
|
|
|
|
* Y and Y2 use the same value
|
|
|
|
* Y and Y2 use the same value
|
|
|
|
* Z, Z2 and Z3 use the same value
|
|
|
|
* Z, Z2 and Z3 use the same value
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_FIELD_TEST(tmc_sgt);
|
|
|
|
|
|
|
|
|
|
|
|
tmc_sgt_t tmc_sgt;
|
|
|
|
tmc_sgt_t tmc_sgt;
|
|
|
|
EEPROM_READ(tmc_sgt);
|
|
|
|
EEPROM_READ(tmc_sgt);
|
|
|
|
#if USE_SENSORLESS
|
|
|
|
#if USE_SENSORLESS
|
|
|
|