|
@@ -877,6 +877,7 @@ void MarlinSettings::postprocess() {
|
877
|
877
|
//
|
878
|
878
|
// Linear Advance
|
879
|
879
|
//
|
|
880
|
+
|
880
|
881
|
_FIELD_TEST(planner_extruder_advance_K);
|
881
|
882
|
|
882
|
883
|
#if ENABLED(LIN_ADVANCE)
|
|
@@ -888,6 +889,10 @@ void MarlinSettings::postprocess() {
|
888
|
889
|
|
889
|
890
|
_FIELD_TEST(motor_current_setting);
|
890
|
891
|
|
|
892
|
+ //
|
|
893
|
+ // Motor Current PWM
|
|
894
|
+ //
|
|
895
|
+
|
891
|
896
|
#if HAS_MOTOR_CURRENT_PWM
|
892
|
897
|
for (uint8_t q = XYZ; q--;) EEPROM_WRITE(stepper.motor_current_setting[q]);
|
893
|
898
|
#else
|
|
@@ -1408,6 +1413,8 @@ void MarlinSettings::postprocess() {
|
1408
|
1413
|
for (uint8_t q=TMC_AXES; q--;) EEPROM_READ(val);
|
1409
|
1414
|
#endif
|
1410
|
1415
|
|
|
1416
|
+ _FIELD_TEST(tmc_hybrid_threshold);
|
|
1417
|
+
|
1411
|
1418
|
#if ENABLED(HYBRID_THRESHOLD)
|
1412
|
1419
|
#define TMC_SET_PWMTHRS(A,Q) tmc_set_pwmthrs(stepper##Q, tmc_hybrid_threshold.Q, planner.axis_steps_per_mm[_AXIS(A)])
|
1413
|
1420
|
tmc_hybrid_threshold_t tmc_hybrid_threshold;
|
|
@@ -1458,12 +1465,15 @@ void MarlinSettings::postprocess() {
|
1458
|
1465
|
for (uint8_t q=TMC_AXES; q--;) EEPROM_READ(thrs_val);
|
1459
|
1466
|
#endif
|
1460
|
1467
|
|
1461
|
|
- /*
|
|
1468
|
+ /**
|
1462
|
1469
|
* TMC StallGuard threshold.
|
1463
|
1470
|
* X and X2 use the same value
|
1464
|
1471
|
* Y and Y2 use the same value
|
1465
|
1472
|
* Z, Z2 and Z3 use the same value
|
1466
|
1473
|
*/
|
|
1474
|
+
|
|
1475
|
+ _FIELD_TEST(tmc_sgt);
|
|
1476
|
+
|
1467
|
1477
|
tmc_sgt_t tmc_sgt;
|
1468
|
1478
|
EEPROM_READ(tmc_sgt);
|
1469
|
1479
|
#if USE_SENSORLESS
|