2018-10-28 03:01:41 +01:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 15:00:57 +01:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2018-10-28 03:01:41 +01:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-28 06:57:50 +02:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2018-10-28 03:01:41 +01:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
//
|
|
|
|
// Advanced Settings Menus
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "../../inc/MarlinConfigPre.h"
|
|
|
|
|
|
|
|
#if HAS_LCD_MENU
|
|
|
|
|
|
|
|
#include "menu.h"
|
|
|
|
#include "../../module/planner.h"
|
|
|
|
|
|
|
|
#if DISABLED(NO_VOLUMETRICS)
|
|
|
|
#include "../../gcode/parser.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAS_BED_PROBE
|
|
|
|
#include "../../module/probe.h"
|
2019-03-17 11:57:25 +01:00
|
|
|
#endif
|
|
|
|
|
2018-10-28 03:01:41 +01:00
|
|
|
#if ENABLED(PIDTEMP)
|
|
|
|
#include "../../module/temperature.h"
|
|
|
|
#endif
|
|
|
|
|
2019-09-10 09:20:49 +02:00
|
|
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR) && FILAMENT_RUNOUT_DISTANCE_MM
|
2019-06-11 03:18:06 +02:00
|
|
|
#include "../../feature/runout.h"
|
|
|
|
float lcd_runout_distance_mm;
|
|
|
|
#endif
|
|
|
|
|
2019-11-02 13:28:20 +01:00
|
|
|
#if ENABLED(EEPROM_SETTINGS) && DISABLED(SLIM_LCD_MENUS)
|
|
|
|
#include "../../module/configuration_store.h"
|
|
|
|
#endif
|
|
|
|
|
2019-02-02 01:07:04 +01:00
|
|
|
void menu_tmc();
|
2019-03-29 20:07:43 +01:00
|
|
|
void menu_backlash();
|
2019-10-24 22:35:40 +02:00
|
|
|
void menu_cancelobject();
|
2019-02-02 01:07:04 +01:00
|
|
|
|
|
|
|
#if ENABLED(DAC_STEPPER_CURRENT)
|
|
|
|
|
|
|
|
#include "../../feature/dac/stepper_dac.h"
|
|
|
|
|
|
|
|
void menu_dac() {
|
2019-10-08 02:44:33 +02:00
|
|
|
static xyze_uint8_t driverPercent;
|
|
|
|
LOOP_XYZE(i) driverPercent[i] = dac_current_get_percent((AxisEnum)i);
|
2019-02-02 01:07:04 +01:00
|
|
|
START_MENU();
|
2019-10-03 12:38:30 +02:00
|
|
|
BACK_ITEM(MSG_ADVANCED_SETTINGS);
|
2019-12-11 06:37:25 +01:00
|
|
|
#define EDIT_DAC_PERCENT(A) EDIT_ITEM(uint8, MSG_DAC_PERCENT_##A, &driverPercent[_AXIS(A)], 0, 100, []{ dac_current_set_percents(driverPercent); })
|
2019-02-02 01:07:04 +01:00
|
|
|
EDIT_DAC_PERCENT(X);
|
|
|
|
EDIT_DAC_PERCENT(Y);
|
|
|
|
EDIT_DAC_PERCENT(Z);
|
|
|
|
EDIT_DAC_PERCENT(E);
|
2019-10-03 12:38:30 +02:00
|
|
|
ACTION_ITEM(MSG_DAC_EEPROM_WRITE, dac_commit_eeprom);
|
2019-02-02 01:07:04 +01:00
|
|
|
END_MENU();
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAS_MOTOR_CURRENT_PWM
|
|
|
|
|
|
|
|
#include "../../module/stepper.h"
|
|
|
|
|
|
|
|
void menu_pwm() {
|
|
|
|
START_MENU();
|
2019-10-03 12:38:30 +02:00
|
|
|
BACK_ITEM(MSG_ADVANCED_SETTINGS);
|
2019-10-10 02:46:10 +02:00
|
|
|
#define EDIT_CURRENT_PWM(LABEL,I) EDIT_ITEM_P(long5, PSTR(LABEL), &stepper.motor_current_setting[I], 100, 2000, stepper.refresh_motor_power)
|
2020-03-27 23:30:17 +01:00
|
|
|
#if ANY_PIN(MOTOR_CURRENT_PWM_XY, MOTOR_CURRENT_PWM_X, MOTOR_CURRENT_PWM_Y)
|
2020-02-26 10:02:03 +01:00
|
|
|
EDIT_CURRENT_PWM(STR_X STR_Y, 0);
|
2019-02-02 01:07:04 +01:00
|
|
|
#endif
|
|
|
|
#if PIN_EXISTS(MOTOR_CURRENT_PWM_Z)
|
2020-02-26 10:02:03 +01:00
|
|
|
EDIT_CURRENT_PWM(STR_Z, 1);
|
2019-02-02 01:07:04 +01:00
|
|
|
#endif
|
|
|
|
#if PIN_EXISTS(MOTOR_CURRENT_PWM_E)
|
2020-02-26 10:02:03 +01:00
|
|
|
EDIT_CURRENT_PWM(STR_E, 2);
|
2019-02-02 01:07:04 +01:00
|
|
|
#endif
|
|
|
|
END_MENU();
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2018-10-28 03:01:41 +01:00
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE)
|
|
|
|
#include "../../module/configuration_store.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if DISABLED(NO_VOLUMETRICS) || ENABLED(ADVANCED_PAUSE_FEATURE)
|
|
|
|
//
|
|
|
|
// Advanced Settings > Filament
|
|
|
|
//
|
|
|
|
void menu_advanced_filament() {
|
|
|
|
START_MENU();
|
2019-10-03 12:38:30 +02:00
|
|
|
BACK_ITEM(MSG_ADVANCED_SETTINGS);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
#if ENABLED(LIN_ADVANCE)
|
|
|
|
#if EXTRUDERS == 1
|
2020-03-17 21:12:52 +01:00
|
|
|
EDIT_ITEM(float42_52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
|
2018-10-28 03:01:41 +01:00
|
|
|
#elif EXTRUDERS > 1
|
2020-03-14 05:18:16 +01:00
|
|
|
LOOP_L_N(n, EXTRUDERS)
|
2020-03-17 21:12:52 +01:00
|
|
|
EDIT_ITEM_N(float42_52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
|
2019-11-15 03:30:30 +01:00
|
|
|
#endif
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if DISABLED(NO_VOLUMETRICS)
|
2019-10-03 12:38:30 +02:00
|
|
|
EDIT_ITEM(bool, MSG_VOLUMETRIC_ENABLED, &parser.volumetric_enabled, planner.calculate_volumetric_multipliers);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
if (parser.volumetric_enabled) {
|
2020-01-09 00:43:36 +01:00
|
|
|
EDIT_ITEM_FAST(float43, MSG_FILAMENT_DIAM, &planner.filament_size[active_extruder], 1.5f, 3.25f, planner.calculate_volumetric_multipliers);
|
|
|
|
#if EXTRUDERS > 1
|
2020-03-14 05:18:16 +01:00
|
|
|
LOOP_L_N(n, EXTRUDERS)
|
2020-01-09 00:43:36 +01:00
|
|
|
EDIT_ITEM_FAST_N(float43, n, MSG_FILAMENT_DIAM_E, &planner.filament_size[n], 1.5f, 3.25f, planner.calculate_volumetric_multipliers);
|
2019-11-15 03:30:30 +01:00
|
|
|
#endif
|
2018-10-28 03:01:41 +01:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
|
|
|
constexpr float extrude_maxlength =
|
|
|
|
#if ENABLED(PREVENT_LENGTHY_EXTRUDE)
|
|
|
|
EXTRUDE_MAXLENGTH
|
|
|
|
#else
|
|
|
|
999
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
|
2020-01-09 00:43:36 +01:00
|
|
|
EDIT_ITEM_FAST(float3, MSG_FILAMENT_UNLOAD, &fc_settings[active_extruder].unload_length, 0, extrude_maxlength);
|
|
|
|
#if EXTRUDERS > 1
|
2020-03-14 05:18:16 +01:00
|
|
|
LOOP_L_N(n, EXTRUDERS)
|
2020-01-09 00:43:36 +01:00
|
|
|
EDIT_ITEM_FAST_N(float3, n, MSG_FILAMENTUNLOAD_E, &fc_settings[n].unload_length, 0, extrude_maxlength);
|
2019-11-15 03:30:30 +01:00
|
|
|
#endif
|
2018-10-28 03:01:41 +01:00
|
|
|
|
2020-01-09 00:43:36 +01:00
|
|
|
EDIT_ITEM_FAST(float3, MSG_FILAMENT_LOAD, &fc_settings[active_extruder].load_length, 0, extrude_maxlength);
|
|
|
|
#if EXTRUDERS > 1
|
2020-03-14 05:18:16 +01:00
|
|
|
LOOP_L_N(n, EXTRUDERS)
|
2020-01-09 00:43:36 +01:00
|
|
|
EDIT_ITEM_FAST_N(float3, n, MSG_FILAMENTLOAD_E, &fc_settings[n].load_length, 0, extrude_maxlength);
|
2019-11-15 03:30:30 +01:00
|
|
|
#endif
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
|
|
|
|
2019-09-10 09:20:49 +02:00
|
|
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR) && FILAMENT_RUNOUT_DISTANCE_MM
|
2019-10-03 12:38:30 +02:00
|
|
|
EDIT_ITEM(float3, MSG_RUNOUT_DISTANCE_MM, &lcd_runout_distance_mm, 1, 30, []{
|
2019-06-11 03:18:06 +02:00
|
|
|
runout.set_runout_distance(lcd_runout_distance_mm);
|
|
|
|
});
|
|
|
|
#endif
|
|
|
|
|
2018-10-28 03:01:41 +01:00
|
|
|
END_MENU();
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // !NO_VOLUMETRICS || ADVANCED_PAUSE_FEATURE
|
|
|
|
|
|
|
|
//
|
|
|
|
// Advanced Settings > Temperature helpers
|
|
|
|
//
|
|
|
|
|
|
|
|
#if ENABLED(PID_AUTOTUNE_MENU)
|
|
|
|
|
|
|
|
#if ENABLED(PIDTEMP)
|
|
|
|
int16_t autotune_temp[HOTENDS] = ARRAY_BY_HOTENDS1(150);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(PIDTEMPBED)
|
|
|
|
int16_t autotune_temp_bed = 70;
|
|
|
|
#endif
|
|
|
|
|
2020-04-10 03:05:58 +02:00
|
|
|
#include "../../gcode/queue.h"
|
|
|
|
|
2018-10-28 03:01:41 +01:00
|
|
|
void _lcd_autotune(const int16_t e) {
|
|
|
|
char cmd[30];
|
|
|
|
sprintf_P(cmd, PSTR("M303 U1 E%i S%i"), e,
|
|
|
|
#if HAS_PID_FOR_BOTH
|
|
|
|
e < 0 ? autotune_temp_bed : autotune_temp[e]
|
|
|
|
#else
|
2020-04-10 03:05:58 +02:00
|
|
|
TERN(PIDTEMPBED, autotune_temp_bed, autotune_temp[e])
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
|
|
|
);
|
2020-04-10 03:05:58 +02:00
|
|
|
queue.inject(cmd);
|
2018-10-28 03:01:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // PID_AUTOTUNE_MENU
|
|
|
|
|
2019-02-10 11:03:18 +01:00
|
|
|
#if ENABLED(PID_EDIT_MENU)
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
float raw_Ki, raw_Kd; // place-holders for Ki and Kd edits
|
|
|
|
|
|
|
|
// Helpers for editing PID Ki & Kd values
|
|
|
|
// grab the PID value out of the temp variable; scale it; then update the PID driver
|
|
|
|
void copy_and_scalePID_i(int16_t e) {
|
|
|
|
#if DISABLED(PID_PARAMS_PER_HOTEND) || HOTENDS == 1
|
|
|
|
UNUSED(e);
|
|
|
|
#endif
|
|
|
|
PID_PARAM(Ki, e) = scalePID_i(raw_Ki);
|
|
|
|
thermalManager.updatePID();
|
|
|
|
}
|
|
|
|
void copy_and_scalePID_d(int16_t e) {
|
|
|
|
#if DISABLED(PID_PARAMS_PER_HOTEND) || HOTENDS == 1
|
|
|
|
UNUSED(e);
|
|
|
|
#endif
|
|
|
|
PID_PARAM(Kd, e) = scalePID_d(raw_Kd);
|
|
|
|
thermalManager.updatePID();
|
|
|
|
}
|
2019-02-10 11:03:18 +01:00
|
|
|
|
2019-10-10 02:46:10 +02:00
|
|
|
#define _DEFINE_PIDTEMP_BASE_FUNCS(N) \
|
|
|
|
void copy_and_scalePID_i_E##N() { copy_and_scalePID_i(N); } \
|
|
|
|
void copy_and_scalePID_d_E##N() { copy_and_scalePID_d(N); }
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define _DEFINE_PIDTEMP_BASE_FUNCS(N) //
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(PID_AUTOTUNE_MENU)
|
|
|
|
#define DEFINE_PIDTEMP_FUNCS(N) \
|
|
|
|
_DEFINE_PIDTEMP_BASE_FUNCS(N); \
|
2020-02-02 04:00:53 +01:00
|
|
|
void lcd_autotune_callback_E##N() { _lcd_autotune(N); }
|
2019-10-10 02:46:10 +02:00
|
|
|
#else
|
2020-02-02 04:00:53 +01:00
|
|
|
#define DEFINE_PIDTEMP_FUNCS(N) _DEFINE_PIDTEMP_BASE_FUNCS(N);
|
2019-02-10 11:03:18 +01:00
|
|
|
#endif
|
|
|
|
|
2020-04-20 06:56:55 +02:00
|
|
|
#if HAS_HOTEND
|
2019-10-10 02:46:10 +02:00
|
|
|
DEFINE_PIDTEMP_FUNCS(0);
|
2020-04-24 04:42:38 +02:00
|
|
|
#if BOTH(HAS_MULTI_HOTEND, PID_PARAMS_PER_HOTEND)
|
2020-02-02 04:00:53 +01:00
|
|
|
REPEAT_S(1, HOTENDS, DEFINE_PIDTEMP_FUNCS)
|
|
|
|
#endif
|
|
|
|
#endif
|
2019-10-10 02:46:10 +02:00
|
|
|
|
2020-04-24 04:42:38 +02:00
|
|
|
#if BOTH(AUTOTEMP, HAS_TEMP_HOTEND) || EITHER(PID_AUTOTUNE_MENU, PID_EDIT_MENU)
|
|
|
|
#define SHOW_MENU_ADVANCED_TEMPERATURE 1
|
|
|
|
#endif
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// Advanced Settings > Temperature
|
|
|
|
//
|
2019-02-10 11:03:18 +01:00
|
|
|
#if SHOW_MENU_ADVANCED_TEMPERATURE
|
2018-10-28 03:01:41 +01:00
|
|
|
|
2019-02-10 11:03:18 +01:00
|
|
|
void menu_advanced_temperature() {
|
|
|
|
START_MENU();
|
2019-10-03 12:38:30 +02:00
|
|
|
BACK_ITEM(MSG_ADVANCED_SETTINGS);
|
2019-02-10 11:03:18 +01:00
|
|
|
//
|
|
|
|
// Autotemp, Min, Max, Fact
|
|
|
|
//
|
2020-04-24 04:42:38 +02:00
|
|
|
#if BOTH(AUTOTEMP, HAS_TEMP_HOTEND)
|
2019-10-03 12:38:30 +02:00
|
|
|
EDIT_ITEM(bool, MSG_AUTOTEMP, &planner.autotemp_enabled);
|
2020-04-27 11:48:11 +02:00
|
|
|
EDIT_ITEM(float3, MSG_MIN, &planner.autotemp_min, 0, float(HEATER_0_MAXTEMP) - HOTEND_OVERSHOOT);
|
|
|
|
EDIT_ITEM(float3, MSG_MAX, &planner.autotemp_max, 0, float(HEATER_0_MAXTEMP) - HOTEND_OVERSHOOT);
|
2020-03-17 21:12:52 +01:00
|
|
|
EDIT_ITEM(float42_52, MSG_FACTOR, &planner.autotemp_factor, 0, 10);
|
2019-02-10 11:03:18 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// PID-P, PID-I, PID-D, PID-C, PID Autotune
|
|
|
|
// PID-P E1, PID-I E1, PID-D E1, PID-C E1, PID Autotune E1
|
|
|
|
// PID-P E2, PID-I E2, PID-D E2, PID-C E2, PID Autotune E2
|
|
|
|
// PID-P E3, PID-I E3, PID-D E3, PID-C E3, PID Autotune E3
|
|
|
|
// PID-P E4, PID-I E4, PID-D E4, PID-C E4, PID Autotune E4
|
|
|
|
// PID-P E5, PID-I E5, PID-D E5, PID-C E5, PID Autotune E5
|
|
|
|
//
|
|
|
|
|
2019-10-13 23:46:06 +02:00
|
|
|
#if ENABLED(PID_EDIT_MENU)
|
2019-11-26 10:34:43 +01:00
|
|
|
#define __PID_BASE_MENU_ITEMS(N) \
|
2019-10-10 02:46:10 +02:00
|
|
|
raw_Ki = unscalePID_i(PID_PARAM(Ki, N)); \
|
|
|
|
raw_Kd = unscalePID_d(PID_PARAM(Kd, N)); \
|
2019-11-15 03:30:30 +01:00
|
|
|
EDIT_ITEM_N(float52sign, N, MSG_PID_P_E, &PID_PARAM(Kp, N), 1, 9990); \
|
|
|
|
EDIT_ITEM_N(float52sign, N, MSG_PID_I_E, &raw_Ki, 0.01f, 9990, []{ copy_and_scalePID_i(N); }); \
|
|
|
|
EDIT_ITEM_N(float52sign, N, MSG_PID_D_E, &raw_Kd, 1, 9990, []{ copy_and_scalePID_d(N); })
|
2019-02-10 11:03:18 +01:00
|
|
|
|
|
|
|
#if ENABLED(PID_EXTRUSION_SCALING)
|
2019-11-26 10:34:43 +01:00
|
|
|
#define _PID_BASE_MENU_ITEMS(N) \
|
|
|
|
__PID_BASE_MENU_ITEMS(N); \
|
|
|
|
EDIT_ITEM_N(float3, N, MSG_PID_C_E, &PID_PARAM(Kc, N), 1, 9990)
|
|
|
|
#else
|
|
|
|
#define _PID_BASE_MENU_ITEMS(N) __PID_BASE_MENU_ITEMS(N)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(PID_FAN_SCALING)
|
2019-10-10 02:46:10 +02:00
|
|
|
#define _PID_EDIT_MENU_ITEMS(N) \
|
|
|
|
_PID_BASE_MENU_ITEMS(N); \
|
2020-01-27 00:07:13 +01:00
|
|
|
EDIT_ITEM_N(float3, N, MSG_PID_F_E, &PID_PARAM(Kf, N), 1, 9990)
|
2019-02-10 11:03:18 +01:00
|
|
|
#else
|
2019-10-10 02:46:10 +02:00
|
|
|
#define _PID_EDIT_MENU_ITEMS(N) _PID_BASE_MENU_ITEMS(N)
|
2019-02-10 11:03:18 +01:00
|
|
|
#endif
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
#else
|
2019-02-10 11:03:18 +01:00
|
|
|
|
2019-10-10 02:46:10 +02:00
|
|
|
#define _PID_EDIT_MENU_ITEMS(N) NOOP
|
2019-02-10 11:03:18 +01:00
|
|
|
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(PID_AUTOTUNE_MENU)
|
2019-10-10 02:46:10 +02:00
|
|
|
#define PID_EDIT_MENU_ITEMS(N) \
|
|
|
|
_PID_EDIT_MENU_ITEMS(N); \
|
2020-04-27 11:48:11 +02:00
|
|
|
EDIT_ITEM_FAST_N(int3, N, MSG_PID_AUTOTUNE_E, &autotune_temp[N], 150, heater_maxtemp[N] - HOTEND_OVERSHOOT, []{ _lcd_autotune(MenuItemBase::itemIndex); });
|
2018-10-28 03:01:41 +01:00
|
|
|
#else
|
2020-02-02 04:00:53 +01:00
|
|
|
#define PID_EDIT_MENU_ITEMS(N) _PID_EDIT_MENU_ITEMS(N);
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
|
|
|
|
2019-10-10 02:46:10 +02:00
|
|
|
PID_EDIT_MENU_ITEMS(0);
|
2020-04-24 04:42:38 +02:00
|
|
|
#if BOTH(HAS_MULTI_HOTEND, PID_PARAMS_PER_HOTEND)
|
2020-02-02 04:00:53 +01:00
|
|
|
REPEAT_S(1, HOTENDS, PID_EDIT_MENU_ITEMS)
|
|
|
|
#endif
|
2018-10-28 03:01:41 +01:00
|
|
|
|
2019-02-10 11:03:18 +01:00
|
|
|
END_MENU();
|
|
|
|
}
|
2018-10-28 03:01:41 +01:00
|
|
|
|
2019-02-10 11:03:18 +01:00
|
|
|
#endif // SHOW_MENU_ADVANCED_TEMPERATURE
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
#if DISABLED(SLIM_LCD_MENUS)
|
|
|
|
|
|
|
|
#if ENABLED(DISTINCT_E_FACTORS)
|
2019-10-08 02:44:33 +02:00
|
|
|
inline void _reset_e_acceleration_rate(const uint8_t e) { if (e == active_extruder) planner.reset_acceleration_rates(); }
|
|
|
|
inline void _planner_refresh_e_positioning(const uint8_t e) {
|
2018-10-28 03:01:41 +01:00
|
|
|
if (e == active_extruder)
|
2019-10-08 02:44:33 +02:00
|
|
|
planner.refresh_positioning();
|
2018-10-28 03:01:41 +01:00
|
|
|
else
|
2019-01-12 02:37:20 +01:00
|
|
|
planner.steps_to_mm[E_AXIS_N(e)] = 1.0f / planner.settings.axis_steps_per_mm[E_AXIS_N(e)];
|
2018-10-28 03:01:41 +01:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// M203 / M205 Velocity options
|
|
|
|
void menu_advanced_velocity() {
|
|
|
|
START_MENU();
|
2019-10-03 12:38:30 +02:00
|
|
|
BACK_ITEM(MSG_ADVANCED_SETTINGS);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
// M203 Max Feedrate
|
2019-10-02 02:59:48 +02:00
|
|
|
constexpr xyze_feedrate_t max_fr_edit =
|
|
|
|
#ifdef MAX_FEEDRATE_EDIT_VALUES
|
|
|
|
MAX_FEEDRATE_EDIT_VALUES
|
|
|
|
#elif ENABLED(LIMITED_MAX_FR_EDITING)
|
|
|
|
DEFAULT_MAX_FEEDRATE
|
|
|
|
#else
|
|
|
|
{ 999, 999, 999, 999 }
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
#if ENABLED(LIMITED_MAX_FR_EDITING) && !defined(MAX_FEEDRATE_EDIT_VALUES)
|
|
|
|
const xyze_feedrate_t max_fr_edit_scaled = max_fr_edit * 2;
|
|
|
|
#else
|
|
|
|
const xyze_feedrate_t &max_fr_edit_scaled = max_fr_edit;
|
|
|
|
#endif
|
2019-10-10 02:46:10 +02:00
|
|
|
#define EDIT_VMAX(N) EDIT_ITEM_FAST(float3, MSG_VMAX_##N, &planner.settings.max_feedrate_mm_s[_AXIS(N)], 1, max_fr_edit_scaled[_AXIS(N)])
|
2018-10-28 21:24:13 +01:00
|
|
|
EDIT_VMAX(A);
|
|
|
|
EDIT_VMAX(B);
|
|
|
|
EDIT_VMAX(C);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
2020-01-09 00:43:36 +01:00
|
|
|
#if E_STEPPERS
|
2019-10-10 02:46:10 +02:00
|
|
|
EDIT_ITEM_FAST(float3, MSG_VMAX_E, &planner.settings.max_feedrate_mm_s[E_AXIS_N(active_extruder)], 1, max_fr_edit_scaled.e);
|
2020-01-09 00:43:36 +01:00
|
|
|
#endif
|
|
|
|
#if ENABLED(DISTINCT_E_FACTORS)
|
2020-03-14 05:18:16 +01:00
|
|
|
LOOP_L_N(n, E_STEPPERS)
|
2020-01-09 00:43:36 +01:00
|
|
|
EDIT_ITEM_FAST_N(float3, n, MSG_VMAX_EN, &planner.settings.max_feedrate_mm_s[E_AXIS_N(n)], 1, max_fr_edit_scaled.e);
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// M205 S Min Feedrate
|
2019-10-03 12:38:30 +02:00
|
|
|
EDIT_ITEM_FAST(float3, MSG_VMIN, &planner.settings.min_feedrate_mm_s, 0, 999);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
// M205 T Min Travel Feedrate
|
2019-10-03 12:38:30 +02:00
|
|
|
EDIT_ITEM_FAST(float3, MSG_VTRAV_MIN, &planner.settings.min_travel_feedrate_mm_s, 0, 999);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
END_MENU();
|
|
|
|
}
|
|
|
|
|
|
|
|
// M201 / M204 Accelerations
|
|
|
|
void menu_advanced_acceleration() {
|
|
|
|
START_MENU();
|
2019-10-03 12:38:30 +02:00
|
|
|
BACK_ITEM(MSG_ADVANCED_SETTINGS);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
2020-03-24 21:13:37 +01:00
|
|
|
const float max_accel = _MAX(planner.settings.max_acceleration_mm_per_s2[A_AXIS], planner.settings.max_acceleration_mm_per_s2[B_AXIS], planner.settings.max_acceleration_mm_per_s2[C_AXIS]);
|
2018-10-28 03:01:41 +01:00
|
|
|
// M204 P Acceleration
|
2019-10-03 12:38:30 +02:00
|
|
|
EDIT_ITEM_FAST(float5_25, MSG_ACC, &planner.settings.acceleration, 25, max_accel);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
// M204 R Retract Acceleration
|
2020-03-24 21:13:37 +01:00
|
|
|
EDIT_ITEM_FAST(float5, MSG_A_RETRACT, &planner.settings.retract_acceleration, 100, planner.settings.max_acceleration_mm_per_s2[E_AXIS_N(active_extruder)]);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
// M204 T Travel Acceleration
|
2019-10-03 12:38:30 +02:00
|
|
|
EDIT_ITEM_FAST(float5_25, MSG_A_TRAVEL, &planner.settings.travel_acceleration, 25, max_accel);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
// M201 settings
|
2019-10-02 02:59:48 +02:00
|
|
|
constexpr xyze_ulong_t max_accel_edit =
|
|
|
|
#ifdef MAX_ACCEL_EDIT_VALUES
|
|
|
|
MAX_ACCEL_EDIT_VALUES
|
|
|
|
#elif ENABLED(LIMITED_MAX_ACCEL_EDITING)
|
|
|
|
DEFAULT_MAX_ACCELERATION
|
|
|
|
#else
|
|
|
|
{ 99000, 99000, 99000, 99000 }
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
#if ENABLED(LIMITED_MAX_ACCEL_EDITING) && !defined(MAX_ACCEL_EDIT_VALUES)
|
|
|
|
const xyze_ulong_t max_accel_edit_scaled = max_accel_edit * 2;
|
|
|
|
#else
|
|
|
|
const xyze_ulong_t &max_accel_edit_scaled = max_accel_edit;
|
|
|
|
#endif
|
|
|
|
|
2019-11-02 06:05:05 +01:00
|
|
|
#define EDIT_AMAX(Q,L) EDIT_ITEM_FAST(long5_25, MSG_AMAX_##Q, &planner.settings.max_acceleration_mm_per_s2[_AXIS(Q)], L, max_accel_edit_scaled[_AXIS(Q)], []{ planner.reset_acceleration_rates(); })
|
2020-04-27 12:59:52 +02:00
|
|
|
EDIT_AMAX(A, 100);
|
|
|
|
EDIT_AMAX(B, 100);
|
|
|
|
EDIT_AMAX(C, 10);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
#if ENABLED(DISTINCT_E_FACTORS)
|
2019-11-02 06:05:05 +01:00
|
|
|
EDIT_ITEM_FAST(long5_25, MSG_AMAX_E, &planner.settings.max_acceleration_mm_per_s2[E_AXIS_N(active_extruder)], 100, max_accel_edit_scaled.e, []{ planner.reset_acceleration_rates(); });
|
2020-03-14 05:18:16 +01:00
|
|
|
LOOP_L_N(n, E_STEPPERS)
|
2020-01-09 00:43:36 +01:00
|
|
|
EDIT_ITEM_FAST_N(long5_25, n, MSG_AMAX_EN, &planner.settings.max_acceleration_mm_per_s2[E_AXIS_N(n)], 100, max_accel_edit_scaled.e, []{ _reset_e_acceleration_rate(MenuItemBase::itemIndex); });
|
2019-03-01 08:51:24 +01:00
|
|
|
#elif E_STEPPERS
|
2019-11-02 06:05:05 +01:00
|
|
|
EDIT_ITEM_FAST(long5_25, MSG_AMAX_E, &planner.settings.max_acceleration_mm_per_s2[E_AXIS], 100, max_accel_edit_scaled.e, []{ planner.reset_acceleration_rates(); });
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
|
|
|
|
2020-04-27 12:59:52 +02:00
|
|
|
#ifdef XY_FREQUENCY_LIMIT
|
|
|
|
EDIT_ITEM(uint16_3, MSG_XY_FREQUENCY_LIMIT, &planner.xy_freq_limit_hz, 0, 100, refresh_frequency_limit(), true);
|
|
|
|
editable.uint8 = ROUND(planner.xy_freq_min_speed_factor * 255 * 100); // percent to u8
|
|
|
|
EDIT_ITEM(percent, MSG_XY_FREQUENCY_FEEDRATE, &editable.uint8, 3, 255, []{ planner.set_min_speed_factor_u8(editable.uint8); }, true);
|
|
|
|
#endif
|
|
|
|
|
2018-10-28 03:01:41 +01:00
|
|
|
END_MENU();
|
|
|
|
}
|
|
|
|
|
|
|
|
// M205 Jerk
|
|
|
|
void menu_advanced_jerk() {
|
|
|
|
START_MENU();
|
2019-10-03 12:38:30 +02:00
|
|
|
BACK_ITEM(MSG_ADVANCED_SETTINGS);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
2020-04-24 03:49:11 +02:00
|
|
|
#if HAS_JUNCTION_DEVIATION
|
2018-10-28 03:01:41 +01:00
|
|
|
#if ENABLED(LIN_ADVANCE)
|
2019-10-13 21:34:51 +02:00
|
|
|
EDIT_ITEM(float43, MSG_JUNCTION_DEVIATION, &planner.junction_deviation_mm, 0.001f, 0.3f, planner.recalculate_max_e_jerk);
|
2018-10-28 03:01:41 +01:00
|
|
|
#else
|
2019-10-13 21:34:51 +02:00
|
|
|
EDIT_ITEM(float43, MSG_JUNCTION_DEVIATION, &planner.junction_deviation_mm, 0.001f, 0.5f);
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if HAS_CLASSIC_JERK
|
2019-10-02 02:59:48 +02:00
|
|
|
constexpr xyze_float_t max_jerk_edit =
|
|
|
|
#ifdef MAX_ACCEL_EDIT_VALUES
|
|
|
|
MAX_JERK_EDIT_VALUES
|
|
|
|
#elif ENABLED(LIMITED_JERK_EDITING)
|
|
|
|
{ (DEFAULT_XJERK) * 2, (DEFAULT_YJERK) * 2, (DEFAULT_ZJERK) * 2, (DEFAULT_EJERK) * 2 }
|
|
|
|
#else
|
|
|
|
{ 990, 990, 990, 990 }
|
|
|
|
#endif
|
|
|
|
;
|
2019-10-03 12:38:30 +02:00
|
|
|
#define EDIT_JERK(N) EDIT_ITEM_FAST(float3, MSG_V##N##_JERK, &planner.max_jerk[_AXIS(N)], 1, max_jerk_edit[_AXIS(N)])
|
2018-10-28 21:24:13 +01:00
|
|
|
EDIT_JERK(A);
|
|
|
|
EDIT_JERK(B);
|
2018-10-28 03:01:41 +01:00
|
|
|
#if ENABLED(DELTA)
|
2018-10-28 21:24:13 +01:00
|
|
|
EDIT_JERK(C);
|
2018-10-28 03:01:41 +01:00
|
|
|
#else
|
2019-10-03 12:38:30 +02:00
|
|
|
EDIT_ITEM_FAST(float52sign, MSG_VC_JERK, &planner.max_jerk.c, 0.1f, max_jerk_edit.c);
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
2019-10-09 02:42:18 +02:00
|
|
|
#if HAS_CLASSIC_E_JERK
|
2019-10-03 12:38:30 +02:00
|
|
|
EDIT_ITEM_FAST(float52sign, MSG_VE_JERK, &planner.max_jerk.e, 0.1f, max_jerk_edit.e);
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
END_MENU();
|
|
|
|
}
|
|
|
|
|
2020-01-10 07:47:38 +01:00
|
|
|
// M851 - Z Probe Offsets
|
|
|
|
#if HAS_BED_PROBE
|
|
|
|
void menu_probe_offsets() {
|
|
|
|
START_MENU();
|
|
|
|
BACK_ITEM(MSG_ADVANCED_SETTINGS);
|
2020-02-01 11:21:36 +01:00
|
|
|
#if HAS_PROBE_XY_OFFSET
|
|
|
|
EDIT_ITEM(float51sign, MSG_ZPROBE_XOFFSET, &probe.offset.x, -(X_BED_SIZE), X_BED_SIZE);
|
|
|
|
EDIT_ITEM(float51sign, MSG_ZPROBE_YOFFSET, &probe.offset.y, -(Y_BED_SIZE), Y_BED_SIZE);
|
|
|
|
#endif
|
|
|
|
EDIT_ITEM(LCD_Z_OFFSET_TYPE, MSG_ZPROBE_ZOFFSET, &probe.offset.z, Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX);
|
2020-01-10 07:47:38 +01:00
|
|
|
END_MENU();
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif // !SLIM_LCD_MENUS
|
|
|
|
|
2020-01-20 07:43:19 +01:00
|
|
|
// M92 Steps-per-mm
|
|
|
|
void menu_advanced_steps_per_mm() {
|
|
|
|
START_MENU();
|
|
|
|
BACK_ITEM(MSG_ADVANCED_SETTINGS);
|
|
|
|
|
|
|
|
#define EDIT_QSTEPS(Q) EDIT_ITEM_FAST(float51, MSG_##Q##_STEPS, &planner.settings.axis_steps_per_mm[_AXIS(Q)], 5, 9999, []{ planner.refresh_positioning(); })
|
|
|
|
EDIT_QSTEPS(A);
|
|
|
|
EDIT_QSTEPS(B);
|
|
|
|
EDIT_QSTEPS(C);
|
|
|
|
|
|
|
|
#if ENABLED(DISTINCT_E_FACTORS)
|
|
|
|
EDIT_ITEM_FAST(float51, MSG_E_STEPS, &planner.settings.axis_steps_per_mm[E_AXIS_N(active_extruder)], 5, 9999, []{ planner.refresh_positioning(); });
|
2020-03-14 05:18:16 +01:00
|
|
|
LOOP_L_N(n, E_STEPPERS)
|
2020-01-20 07:43:19 +01:00
|
|
|
EDIT_ITEM_FAST_N(float51, n, MSG_EN_STEPS, &planner.settings.axis_steps_per_mm[E_AXIS_N(n)], 5, 9999, []{ _planner_refresh_e_positioning(MenuItemBase::itemIndex); });
|
|
|
|
#elif E_STEPPERS
|
|
|
|
EDIT_ITEM_FAST(float51, MSG_E_STEPS, &planner.settings.axis_steps_per_mm[E_AXIS], 5, 9999, []{ planner.refresh_positioning(); });
|
|
|
|
#endif
|
|
|
|
|
|
|
|
END_MENU();
|
|
|
|
}
|
|
|
|
|
2018-10-28 03:01:41 +01:00
|
|
|
void menu_advanced_settings() {
|
2019-09-10 09:20:49 +02:00
|
|
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR) && FILAMENT_RUNOUT_DISTANCE_MM
|
2019-06-11 03:18:06 +02:00
|
|
|
lcd_runout_distance_mm = runout.runout_distance();
|
2019-06-18 03:08:51 +02:00
|
|
|
#endif
|
2018-10-28 03:01:41 +01:00
|
|
|
START_MENU();
|
2019-10-03 12:38:30 +02:00
|
|
|
BACK_ITEM(MSG_CONFIGURATION);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
#if DISABLED(SLIM_LCD_MENUS)
|
|
|
|
|
|
|
|
#if HAS_M206_COMMAND
|
|
|
|
//
|
|
|
|
// Set Home Offsets
|
|
|
|
//
|
2019-11-02 06:05:05 +01:00
|
|
|
ACTION_ITEM(MSG_SET_HOME_OFFSETS, []{ queue.inject_P(PSTR("M428")); ui.return_to_status(); });
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// M203 / M205 - Feedrate items
|
2019-10-03 12:38:30 +02:00
|
|
|
SUBMENU(MSG_VELOCITY, menu_advanced_velocity);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
// M201 - Acceleration items
|
2019-10-03 12:38:30 +02:00
|
|
|
SUBMENU(MSG_ACCELERATION, menu_advanced_acceleration);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
// M205 - Max Jerk
|
2019-10-03 12:38:30 +02:00
|
|
|
SUBMENU(MSG_JERK, menu_advanced_jerk);
|
2018-10-28 03:01:41 +01:00
|
|
|
|
2020-01-20 07:43:19 +01:00
|
|
|
// M851 - Z Probe Offsets
|
|
|
|
#if HAS_BED_PROBE
|
|
|
|
if (!printer_busy())
|
2020-01-10 07:47:38 +01:00
|
|
|
SUBMENU(MSG_ZPROBE_OFFSETS, menu_probe_offsets);
|
2020-01-20 07:43:19 +01:00
|
|
|
#endif
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif // !SLIM_LCD_MENUS
|
|
|
|
|
2020-01-20 07:43:19 +01:00
|
|
|
// M92 - Steps Per mm
|
|
|
|
if (!printer_busy())
|
|
|
|
SUBMENU(MSG_STEPS_PER_MM, menu_advanced_steps_per_mm);
|
|
|
|
|
2019-03-29 20:07:43 +01:00
|
|
|
#if ENABLED(BACKLASH_GCODE)
|
2019-10-03 12:38:30 +02:00
|
|
|
SUBMENU(MSG_BACKLASH, menu_backlash);
|
2019-03-29 20:07:43 +01:00
|
|
|
#endif
|
|
|
|
|
2019-10-24 22:35:40 +02:00
|
|
|
#if ENABLED(CANCEL_OBJECTS)
|
2019-11-02 06:05:05 +01:00
|
|
|
SUBMENU(MSG_CANCEL_OBJECT, []{ editable.int8 = -1; ui.goto_screen(menu_cancelobject); });
|
2019-10-24 22:35:40 +02:00
|
|
|
#endif
|
|
|
|
|
2019-02-02 01:07:04 +01:00
|
|
|
#if ENABLED(DAC_STEPPER_CURRENT)
|
2019-10-03 12:38:30 +02:00
|
|
|
SUBMENU(MSG_DRIVE_STRENGTH, menu_dac);
|
2019-02-02 01:07:04 +01:00
|
|
|
#endif
|
|
|
|
#if HAS_MOTOR_CURRENT_PWM
|
2019-10-03 12:38:30 +02:00
|
|
|
SUBMENU(MSG_DRIVE_STRENGTH, menu_pwm);
|
2019-02-02 01:07:04 +01:00
|
|
|
#endif
|
|
|
|
|
2020-03-02 19:03:43 +01:00
|
|
|
#if HAS_TRINAMIC_CONFIG
|
2019-10-03 12:38:30 +02:00
|
|
|
SUBMENU(MSG_TMC_DRIVERS, menu_tmc);
|
2019-02-02 01:07:04 +01:00
|
|
|
#endif
|
|
|
|
|
2019-02-10 11:03:18 +01:00
|
|
|
#if SHOW_MENU_ADVANCED_TEMPERATURE
|
2019-10-03 12:38:30 +02:00
|
|
|
SUBMENU(MSG_TEMPERATURE, menu_advanced_temperature);
|
2019-02-10 11:03:18 +01:00
|
|
|
#endif
|
2018-10-28 03:01:41 +01:00
|
|
|
|
|
|
|
#if DISABLED(NO_VOLUMETRICS) || ENABLED(ADVANCED_PAUSE_FEATURE)
|
2019-10-03 12:38:30 +02:00
|
|
|
SUBMENU(MSG_FILAMENT, menu_advanced_filament);
|
2018-10-28 03:01:41 +01:00
|
|
|
#elif ENABLED(LIN_ADVANCE)
|
|
|
|
#if EXTRUDERS == 1
|
2020-03-17 21:12:52 +01:00
|
|
|
EDIT_ITEM(float42_52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
|
2018-10-28 03:01:41 +01:00
|
|
|
#elif EXTRUDERS > 1
|
2020-03-14 05:18:16 +01:00
|
|
|
LOOP_L_N(n, E_STEPPERS)
|
2020-03-17 21:12:52 +01:00
|
|
|
EDIT_ITEM_N(float42_52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
|
2019-11-15 03:30:30 +01:00
|
|
|
#endif
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// M540 S - Abort on endstop hit when SD printing
|
2019-06-11 00:25:43 +02:00
|
|
|
#if ENABLED(SD_ABORT_ON_ENDSTOP_HIT)
|
2019-10-03 12:38:30 +02:00
|
|
|
EDIT_ITEM(bool, MSG_ENDSTOP_ABORT, &planner.abort_on_endstop_hit);
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(SD_FIRMWARE_UPDATE)
|
|
|
|
bool sd_update_state = settings.sd_update_status();
|
2019-10-03 12:38:30 +02:00
|
|
|
EDIT_ITEM(bool, MSG_MEDIA_UPDATE, &sd_update_state, []{
|
2019-05-22 01:23:40 +02:00
|
|
|
//
|
|
|
|
// Toggle the SD Firmware Update state in EEPROM
|
|
|
|
//
|
2019-07-29 02:14:50 +02:00
|
|
|
const bool new_state = !settings.sd_update_status(),
|
|
|
|
didset = settings.set_sd_update_status(new_state);
|
2020-04-22 23:35:03 +02:00
|
|
|
TERN_(HAS_BUZZER, ui.completion_feedback(didset));
|
2019-05-22 01:23:40 +02:00
|
|
|
ui.return_to_status();
|
|
|
|
if (new_state) LCD_MESSAGEPGM(MSG_RESET_PRINTER); else ui.reset_status();
|
|
|
|
});
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(EEPROM_SETTINGS) && DISABLED(SLIM_LCD_MENUS)
|
2019-11-02 13:28:20 +01:00
|
|
|
CONFIRM_ITEM(MSG_INIT_EEPROM,
|
|
|
|
MSG_BUTTON_INIT, MSG_BUTTON_CANCEL,
|
|
|
|
[]{
|
|
|
|
const bool inited = settings.init_eeprom();
|
2020-04-23 22:14:32 +02:00
|
|
|
ui.completion_feedback(inited);
|
2019-11-02 13:28:20 +01:00
|
|
|
UNUSED(inited);
|
|
|
|
},
|
|
|
|
ui.goto_previous_screen,
|
|
|
|
GET_TEXT(MSG_INIT_EEPROM), (PGM_P)nullptr, PSTR("?")
|
|
|
|
);
|
2018-10-28 03:01:41 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
END_MENU();
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // HAS_LCD_MENU
|