Fix compiler warning: 'lcd_settings_linearity_correction_menu_save' defined but not used
This commit is contained in:
parent
28f1e309a2
commit
484259cbb2
|
|
@ -5404,10 +5404,9 @@ static void lcd_ustep_linearity_menu_save()
|
||||||
}
|
}
|
||||||
#endif //TMC2130
|
#endif //TMC2130
|
||||||
|
|
||||||
|
#ifdef TMC2130
|
||||||
static void lcd_settings_linearity_correction_menu_save()
|
static void lcd_settings_linearity_correction_menu_save()
|
||||||
{
|
{
|
||||||
#ifdef TMC2130
|
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
if (tmc2130_wave_fac[X_AXIS] < TMC2130_WAVE_FAC1000_MIN) tmc2130_wave_fac[X_AXIS] = 0;
|
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;
|
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]);
|
changed |= (eeprom_read_byte((uint8_t*)EEPROM_TMC2130_WAVE_E_FAC) != tmc2130_wave_fac[E_AXIS]);
|
||||||
lcd_ustep_linearity_menu_save();
|
lcd_ustep_linearity_menu_save();
|
||||||
if (changed) tmc2130_init();
|
if (changed) tmc2130_init();
|
||||||
#endif //TMC2130
|
|
||||||
}
|
}
|
||||||
|
#endif //TMC2130
|
||||||
|
|
||||||
static void lcd_calibration_menu()
|
static void lcd_calibration_menu()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue