|
@@ -5404,10 +5404,9 @@ static void lcd_ustep_linearity_menu_save()
|
|
|
}
|
|
|
#endif //TMC2130
|
|
|
|
|
|
-
|
|
|
+#ifdef TMC2130
|
|
|
static void lcd_settings_linearity_correction_menu_save()
|
|
|
{
|
|
|
-#ifdef TMC2130
|
|
|
bool changed = false;
|
|
|
if (tmc2130_wave_fac[X_AXIS] < TMC2130_WAVE_FAC1000_MIN) tmc2130_wave_fac[X_AXIS] = 0;
|
|
|
if (tmc2130_wave_fac[Y_AXIS] < TMC2130_WAVE_FAC1000_MIN) tmc2130_wave_fac[Y_AXIS] = 0;
|
|
@@ -5419,9 +5418,8 @@ static void lcd_settings_linearity_correction_menu_save()
|
|
|
changed |= (eeprom_read_byte((uint8_t*)EEPROM_TMC2130_WAVE_E_FAC) != tmc2130_wave_fac[E_AXIS]);
|
|
|
lcd_ustep_linearity_menu_save();
|
|
|
if (changed) tmc2130_init();
|
|
|
-#endif //TMC2130
|
|
|
}
|
|
|
-
|
|
|
+#endif //TMC2130
|
|
|
|
|
|
static void lcd_calibration_menu()
|
|
|
{
|