🎨 Misc. code cleanup
This commit is contained in:
parent
8a4fec9460
commit
bbce951666
@ -54,24 +54,24 @@ void GcodeSuite::M77() {
|
|||||||
#if ENABLED(PRINTCOUNTER)
|
#if ENABLED(PRINTCOUNTER)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* M78: Show print statistics
|
* M78: Show print statistics
|
||||||
*/
|
*/
|
||||||
void GcodeSuite::M78() {
|
void GcodeSuite::M78() {
|
||||||
if (parser.intval('S') == 78) { // "M78 S78" will reset the statistics
|
if (parser.intval('S') == 78) { // "M78 S78" will reset the statistics
|
||||||
print_job_timer.initStats();
|
print_job_timer.initStats();
|
||||||
ui.reset_status();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if HAS_SERVICE_INTERVALS
|
|
||||||
if (parser.seenval('R')) {
|
|
||||||
print_job_timer.resetServiceInterval(parser.value_int());
|
|
||||||
ui.reset_status();
|
ui.reset_status();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
print_job_timer.showStats();
|
#if HAS_SERVICE_INTERVALS
|
||||||
|
if (parser.seenval('R')) {
|
||||||
|
print_job_timer.resetServiceInterval(parser.value_int());
|
||||||
|
ui.reset_status();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
print_job_timer.showStats();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // PRINTCOUNTER
|
#endif // PRINTCOUNTER
|
||||||
|
@ -194,7 +194,6 @@
|
|||||||
#define TITLE_HOME_RU "Home"
|
#define TITLE_HOME_RU "Home"
|
||||||
#define TITLE_EXTRUDE_RU "экструзия"
|
#define TITLE_EXTRUDE_RU "экструзия"
|
||||||
#define TITLE_LEVELING_RU "уровень"
|
#define TITLE_LEVELING_RU "уровень"
|
||||||
#define TITLE_MLEVELING_RU "углы"
|
|
||||||
#define TITLE_SET_RU "настройки"
|
#define TITLE_SET_RU "настройки"
|
||||||
#define TITLE_MORE_RU "больше"
|
#define TITLE_MORE_RU "больше"
|
||||||
#define TITLE_CHOOSEFILE_RU "файла"
|
#define TITLE_CHOOSEFILE_RU "файла"
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
#define PRINT_TEXT_SP "Imprimir"
|
#define PRINT_TEXT_SP "Imprimir"
|
||||||
#define EXTRUDE_TEXT_SP "Extrusor"
|
#define EXTRUDE_TEXT_SP "Extrusor"
|
||||||
#define LEVELING_TEXT_SP "Leveling"
|
#define LEVELING_TEXT_SP "Leveling"
|
||||||
#define MLEVELING_TEXT_SP "Leveling"
|
|
||||||
#define AUTO_LEVELING_TEXT_SP "Autolevel"
|
#define AUTO_LEVELING_TEXT_SP "Autolevel"
|
||||||
#define SET_TEXT_SP "Config"
|
#define SET_TEXT_SP "Config"
|
||||||
#define MORE_TEXT_SP "Más"
|
#define MORE_TEXT_SP "Más"
|
||||||
@ -53,7 +52,6 @@
|
|||||||
#define TOOL_MOVE_SP "Mover"
|
#define TOOL_MOVE_SP "Mover"
|
||||||
#define TOOL_HOME_SP "Origen"
|
#define TOOL_HOME_SP "Origen"
|
||||||
#define TOOL_LEVELING_SP "Leveling"
|
#define TOOL_LEVELING_SP "Leveling"
|
||||||
#define TOOL_MLEVELING_SP "Leveling"
|
|
||||||
#define TOOL_AUTO_LEVELING_SP "Autolevel"
|
#define TOOL_AUTO_LEVELING_SP "Autolevel"
|
||||||
#define TOOL_FILAMENT_SP "Filamento"
|
#define TOOL_FILAMENT_SP "Filamento"
|
||||||
#define TOOL_MORE_SP "Más"
|
#define TOOL_MORE_SP "Más"
|
||||||
|
Loading…
Reference in New Issue
Block a user