Merge pull request #4737 from sarusani/ReplaceSetReadyMenuEntry
Allow to replace Set Ready menu entry
This commit is contained in:
commit
c27fb616e0
|
|
@ -103,8 +103,12 @@ const char MSG_SELFTEST_MOTOR[] PROGMEM_I1 = ISTR("Motor"); ////MSG_SELFTEST_MOT
|
|||
const char MSG_SELFTEST_FILAMENT_SENSOR[] PROGMEM_I1 = ISTR("Filament sensor"); ////MSG_SELFTEST_FILAMENT_SENSOR c=17
|
||||
const char MSG_SELFTEST_WIRINGERROR[] PROGMEM_I1 = ISTR("Wiring error"); ////MSG_SELFTEST_WIRINGERROR c=18
|
||||
const char MSG_SETTINGS[] PROGMEM_I1 = ISTR("Settings"); ////MSG_SETTINGS c=18
|
||||
#ifndef REPLACE_SETREADY
|
||||
const char MSG_SET_READY[] PROGMEM_I1 = ISTR("Set Ready"); ////MSG_SET_READY c=18
|
||||
const char MSG_SET_NOT_READY[] PROGMEM_I1 = ISTR("Set not Ready"); ////MSG_SET_NOT_READY c=18
|
||||
#else
|
||||
const char MSG_HOSTPRINT[] PROGMEM_I1 = ISTR("Print from host"); ////MSG_HOSTPRINT c=18
|
||||
#endif //REPLACE_SETREADY
|
||||
#ifdef HOST_SHUTDOWN
|
||||
const char MSG_SHUTDOWN_HOST[] PROGMEM_I1 = ISTR("Shutdown host"); ////MSG_SHUTDOWN_HOST c=18
|
||||
#endif //HOST_SHUTOWN
|
||||
|
|
|
|||
|
|
@ -105,8 +105,12 @@ extern const char MSG_SELFTEST_MOTOR[];
|
|||
extern const char MSG_SELFTEST_FILAMENT_SENSOR[];
|
||||
extern const char MSG_SELFTEST_WIRINGERROR[];
|
||||
extern const char MSG_SETTINGS[];
|
||||
#ifndef REPLACE_SETREADY
|
||||
extern const char MSG_SET_READY[];
|
||||
extern const char MSG_SET_NOT_READY[];
|
||||
#else
|
||||
extern const char MSG_HOSTPRINT[];
|
||||
#endif
|
||||
#ifdef HOST_SHUTDOWN
|
||||
extern const char MSG_SHUTDOWN_HOST[];
|
||||
#endif //HOST_SHUTOWN
|
||||
|
|
|
|||
|
|
@ -5165,6 +5165,7 @@ static void lcd_sheet_menu()
|
|||
MENU_END();
|
||||
}
|
||||
|
||||
#ifndef REPLACE_SETREADY
|
||||
//! @brief Set printer state
|
||||
//! Sends the printer state for next print via LCD menu to host
|
||||
//! The host has to set the printer ready state with `M72` to keep printer in sync with the host
|
||||
|
|
@ -5178,6 +5179,7 @@ static void lcd_printer_ready_state_toggle()
|
|||
SERIAL_ECHOLNRPGM(MSG_HOST_ACTION_READY);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HOST_SHUTDOWN
|
||||
static void lcd_shutdown_menu()
|
||||
|
|
@ -5278,11 +5280,15 @@ static void lcd_main_menu()
|
|||
} else if (!Stopped) {
|
||||
MENU_ITEM_SUBMENU_P(_T(MSG_PREHEAT), lcd_preheat_menu);
|
||||
if (M79_timer_get_status()) {
|
||||
#ifndef REPLACE_SETREADY
|
||||
if(GetPrinterState() == PrinterState::IsReady) {
|
||||
MENU_ITEM_FUNCTION_P(_T(MSG_SET_NOT_READY), lcd_printer_ready_state_toggle);
|
||||
} else {
|
||||
MENU_ITEM_FUNCTION_P(_T(MSG_SET_READY), lcd_printer_ready_state_toggle);
|
||||
}
|
||||
#else
|
||||
MENU_ITEM_FUNCTION_P(_T(MSG_HOSTPRINT), lcd_send_action_start);
|
||||
#endif //REPLACE_SETREADY
|
||||
}
|
||||
}
|
||||
if (mesh_bed_leveling_flag == false && homing_flag == false && !printingIsPaused() && !processing_tcode) {
|
||||
|
|
|
|||
|
|
@ -264,7 +264,13 @@
|
|||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
// Uncomment if the host supports '//action:shutdown'. It will add "Shutdown host" to the LCD meun.
|
||||
//#define HOST_SHUTDOWN
|
||||
|
||||
// Uncomment if the host doesn't support '//action:ready' & '//action:notready'.
|
||||
// This will replace the "Set Ready"/"Set not Ready" LCD menu entry with
|
||||
// "Print from host" and send '//action:start' instead.
|
||||
//#define REPLACE_SETREADY
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -265,7 +265,13 @@
|
|||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
// Uncomment if the host supports '//action:shutdown'. It will add "Shutdown host" to the LCD meun.
|
||||
//#define HOST_SHUTDOWN
|
||||
|
||||
// Uncomment if the host doesn't support '//action:ready' & '//action:notready'.
|
||||
// This will replace the "Set Ready"/"Set not Ready" LCD menu entry with
|
||||
// "Print from host" and send '//action:start' instead.
|
||||
//#define REPLACE_SETREADY
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -264,7 +264,13 @@
|
|||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
// Uncomment if the host supports '//action:shutdown'. It will add "Shutdown host" to the LCD meun.
|
||||
//#define HOST_SHUTDOWN
|
||||
|
||||
// Uncomment if the host doesn't support '//action:ready' & '//action:notready'.
|
||||
// This will replace the "Set Ready"/"Set not Ready" LCD menu entry with
|
||||
// "Print from host" and send '//action:start' instead.
|
||||
//#define REPLACE_SETREADY
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -265,7 +265,13 @@
|
|||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
// Uncomment if the host supports '//action:shutdown'. It will add "Shutdown host" to the LCD meun.
|
||||
//#define HOST_SHUTDOWN
|
||||
|
||||
// Uncomment if the host doesn't support '//action:ready' & '//action:notready'.
|
||||
// This will replace the "Set Ready"/"Set not Ready" LCD menu entry with
|
||||
// "Print from host" and send '//action:start' instead.
|
||||
//#define REPLACE_SETREADY
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -423,7 +423,13 @@
|
|||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
// Uncomment if the host supports '//action:shutdown'. It will add "Shutdown host" to the LCD meun.
|
||||
//#define HOST_SHUTDOWN
|
||||
|
||||
// Uncomment if the host doesn't support '//action:ready' & '//action:notready'.
|
||||
// This will replace the "Set Ready"/"Set not Ready" LCD menu entry with
|
||||
// "Print from host" and send '//action:start' instead.
|
||||
//#define REPLACE_SETREADY
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -424,7 +424,13 @@
|
|||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
// Uncomment if the host supports '//action:shutdown'. It will add "Shutdown host" to the LCD meun.
|
||||
//#define HOST_SHUTDOWN
|
||||
|
||||
// Uncomment if the host doesn't support '//action:ready' & '//action:notready'.
|
||||
// This will replace the "Set Ready"/"Set not Ready" LCD menu entry with
|
||||
// "Print from host" and send '//action:start' instead.
|
||||
//#define REPLACE_SETREADY
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -426,7 +426,13 @@
|
|||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
// Uncomment if the host supports '//action:shutdown'. It will add "Shutdown host" to the LCD meun.
|
||||
//#define HOST_SHUTDOWN
|
||||
|
||||
// Uncomment if the host doesn't support '//action:ready' & '//action:notready'.
|
||||
// This will replace the "Set Ready"/"Set not Ready" LCD menu entry with
|
||||
// "Print from host" and send '//action:start' instead.
|
||||
//#define REPLACE_SETREADY
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -427,7 +427,13 @@
|
|||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
// Uncomment if the host supports '//action:shutdown'. It will add "Shutdown host" to the LCD meun.
|
||||
//#define HOST_SHUTDOWN
|
||||
|
||||
// Uncomment if the host doesn't support '//action:ready' & '//action:notready'.
|
||||
// This will replace the "Set Ready"/"Set not Ready" LCD menu entry with
|
||||
// "Print from host" and send '//action:start' instead.
|
||||
//#define REPLACE_SETREADY
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -428,7 +428,13 @@
|
|||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
// Uncomment if the host supports '//action:shutdown'. It will add "Shutdown host" to the LCD meun.
|
||||
//#define HOST_SHUTDOWN
|
||||
|
||||
// Uncomment if the host doesn't support '//action:ready' & '//action:notready'.
|
||||
// This will replace the "Set Ready"/"Set not Ready" LCD menu entry with
|
||||
// "Print from host" and send '//action:start' instead.
|
||||
//#define REPLACE_SETREADY
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -430,7 +430,13 @@
|
|||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
// Uncomment if the host supports '//action:shutdown'. It will add "Shutdown host" to the LCD meun.
|
||||
//#define HOST_SHUTDOWN
|
||||
|
||||
// Uncomment if the host doesn't support '//action:ready' & '//action:notready'.
|
||||
// This will replace the "Set Ready"/"Set not Ready" LCD menu entry with
|
||||
// "Print from host" and send '//action:start' instead.
|
||||
//#define REPLACE_SETREADY
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -191,7 +191,13 @@ ADDITIONAL FEATURES SETTINGS
|
|||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
// Uncomment if the host supports '//action:shutdown'. It will add "Shutdown host" to the LCD meun.
|
||||
//#define HOST_SHUTDOWN
|
||||
|
||||
// Uncomment if the host doesn't support '//action:ready' & '//action:notready'.
|
||||
// This will replace the "Set Ready"/"Set not Ready" LCD menu entry with
|
||||
// "Print from host" and send '//action:start' instead.
|
||||
//#define REPLACE_SETREADY
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -190,7 +190,13 @@ ADDITIONAL FEATURES SETTINGS
|
|||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
// Uncomment if the host supports '//action:shutdown'. It will add "Shutdown host" to the LCD meun.
|
||||
//#define HOST_SHUTDOWN
|
||||
|
||||
// Uncomment if the host doesn't support '//action:ready' & '//action:notready'.
|
||||
// This will replace the "Set Ready"/"Set not Ready" LCD menu entry with
|
||||
// "Print from host" and send '//action:start' instead.
|
||||
//#define REPLACE_SETREADY
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -1970,6 +1970,11 @@ msgstr ""
|
|||
msgid "Set not Ready"
|
||||
msgstr ""
|
||||
|
||||
#. MSG_HOSTPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:107 ../../Firmware/ultralcd.cpp:5285
|
||||
msgid "Print from host"
|
||||
msgstr ""
|
||||
|
||||
#. MSG_SET_TEMPERATURE c=20
|
||||
#: ../../Firmware/messages.cpp:262 ../../Firmware/ultralcd.cpp:2730
|
||||
msgid "Set temperature:"
|
||||
|
|
|
|||
|
|
@ -2573,6 +2573,11 @@ msgstr "Připravit"
|
|||
msgid "Set not Ready"
|
||||
msgstr "Zrušit Připravena"
|
||||
|
||||
#. MSG_HOSTPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:107 ../../Firmware/ultralcd.cpp:5285
|
||||
msgid "Print from host"
|
||||
msgstr "Tisk z hosta"
|
||||
|
||||
#. MSG_REPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:196 ../../Firmware/ultralcd.cpp:5243
|
||||
#: ../../Firmware/ultralcd.cpp:5245
|
||||
|
|
|
|||
|
|
@ -2601,6 +2601,11 @@ msgstr "Bereit setzen"
|
|||
msgid "Set not Ready"
|
||||
msgstr "Nicht breit setzen"
|
||||
|
||||
#. MSG_HOSTPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:107 ../../Firmware/ultralcd.cpp:5285
|
||||
msgid "Print from host"
|
||||
msgstr "Drucken vom Host"
|
||||
|
||||
#. MSG_REPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:196 ../../Firmware/ultralcd.cpp:5243
|
||||
#: ../../Firmware/ultralcd.cpp:5245
|
||||
|
|
|
|||
|
|
@ -2596,6 +2596,11 @@ msgstr "Listo"
|
|||
msgid "Set not Ready"
|
||||
msgstr "Conjunto no listo"
|
||||
|
||||
#. MSG_HOSTPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:107 ../../Firmware/ultralcd.cpp:5285
|
||||
msgid "Print from host"
|
||||
msgstr "Imprimir host"
|
||||
|
||||
#. MSG_REPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:196 ../../Firmware/ultralcd.cpp:5243
|
||||
#: ../../Firmware/ultralcd.cpp:5245
|
||||
|
|
|
|||
|
|
@ -2608,6 +2608,11 @@ msgstr "Ensemble prête"
|
|||
msgid "Set not Ready"
|
||||
msgstr "Ensemble pas prête"
|
||||
|
||||
#. MSG_HOSTPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:107 ../../Firmware/ultralcd.cpp:5285
|
||||
msgid "Print from host"
|
||||
msgstr "Impr depuis l'hôte"
|
||||
|
||||
#. MSG_REPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:196 ../../Firmware/ultralcd.cpp:5243
|
||||
#: ../../Firmware/ultralcd.cpp:5245
|
||||
|
|
|
|||
|
|
@ -2590,6 +2590,11 @@ msgstr "Set spreman"
|
|||
msgid "Set not Ready"
|
||||
msgstr "Set nije spreman"
|
||||
|
||||
#. MSG_HOSTPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:107 ../../Firmware/ultralcd.cpp:5285
|
||||
msgid "Print from host"
|
||||
msgstr "Printaj sa host"
|
||||
|
||||
#. MSG_REPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:196 ../../Firmware/ultralcd.cpp:5243
|
||||
#: ../../Firmware/ultralcd.cpp:5245
|
||||
|
|
|
|||
|
|
@ -2593,7 +2593,12 @@ msgstr "Készen áll"
|
|||
#. MSG_SET_NOT_READY c=18
|
||||
#: ../../Firmware/messages.cpp:106 ../../Firmware/ultralcd.cpp:5263
|
||||
msgid "Set not Ready"
|
||||
msgstr "Készen nem áll"
|
||||
msgstr "Nem áll készen"
|
||||
|
||||
#. MSG_HOSTPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:107 ../../Firmware/ultralcd.cpp:5285
|
||||
msgid "Print from host"
|
||||
msgstr "Nyomtatás gépről"
|
||||
|
||||
#. MSG_REPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:196 ../../Firmware/ultralcd.cpp:5243
|
||||
|
|
|
|||
|
|
@ -2596,6 +2596,11 @@ msgstr "Imposta pronta"
|
|||
msgid "Set not Ready"
|
||||
msgstr "Imposta non pronta"
|
||||
|
||||
#. MSG_HOSTPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:107 ../../Firmware/ultralcd.cpp:5285
|
||||
msgid "Print from host"
|
||||
msgstr "Stampa da host"
|
||||
|
||||
#. MSG_REPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:196 ../../Firmware/ultralcd.cpp:5243
|
||||
#: ../../Firmware/ultralcd.cpp:5245
|
||||
|
|
|
|||
|
|
@ -2598,6 +2598,11 @@ msgstr "Gereed zetten"
|
|||
msgid "Set not Ready"
|
||||
msgstr "Niet gereed zetten"
|
||||
|
||||
#. MSG_HOSTPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:107 ../../Firmware/ultralcd.cpp:5285
|
||||
msgid "Print from host"
|
||||
msgstr "Print van host"
|
||||
|
||||
#. MSG_REPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:196 ../../Firmware/ultralcd.cpp:5243
|
||||
#: ../../Firmware/ultralcd.cpp:5245
|
||||
|
|
|
|||
|
|
@ -2572,6 +2572,11 @@ msgstr "Gjør klar"
|
|||
msgid "Set not Ready"
|
||||
msgstr "Sett ikke klar"
|
||||
|
||||
#. MSG_HOSTPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:107 ../../Firmware/ultralcd.cpp:5285
|
||||
msgid "Print from host"
|
||||
msgstr "Print fra vert"
|
||||
|
||||
#. MSG_REPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:196 ../../Firmware/ultralcd.cpp:5243
|
||||
#: ../../Firmware/ultralcd.cpp:5245
|
||||
|
|
|
|||
|
|
@ -2588,6 +2588,11 @@ msgstr "Ustaw gotowość"
|
|||
msgid "Set not Ready"
|
||||
msgstr "Cofnij gotowość"
|
||||
|
||||
#. MSG_HOSTPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:107 ../../Firmware/ultralcd.cpp:5285
|
||||
msgid "Print from host"
|
||||
msgstr "Drukuj z hosta"
|
||||
|
||||
#. MSG_REPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:196 ../../Firmware/ultralcd.cpp:5243
|
||||
#: ../../Firmware/ultralcd.cpp:5245
|
||||
|
|
|
|||
|
|
@ -2597,6 +2597,11 @@ msgstr "Printer pregătit"
|
|||
msgid "Set not Ready"
|
||||
msgstr "Print. nu pregătit"
|
||||
|
||||
#. MSG_HOSTPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:107 ../../Firmware/ultralcd.cpp:5285
|
||||
msgid "Print from host"
|
||||
msgstr "Print. de pe gazdă"
|
||||
|
||||
#. MSG_REPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:196 ../../Firmware/ultralcd.cpp:5243
|
||||
#: ../../Firmware/ultralcd.cpp:5245
|
||||
|
|
|
|||
|
|
@ -2578,6 +2578,11 @@ msgstr "Pripravené"
|
|||
msgid "Set not Ready"
|
||||
msgstr "Nie je pripravené"
|
||||
|
||||
#. MSG_HOSTPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:107 ../../Firmware/ultralcd.cpp:5285
|
||||
msgid "Print from host"
|
||||
msgstr "Tlač z hostiteľa"
|
||||
|
||||
#. MSG_REPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:196 ../../Firmware/ultralcd.cpp:5243
|
||||
#: ../../Firmware/ultralcd.cpp:5245
|
||||
|
|
|
|||
|
|
@ -2585,6 +2585,11 @@ msgstr "Gör klar"
|
|||
msgid "Set not Ready"
|
||||
msgstr "Set inte klart"
|
||||
|
||||
#. MSG_HOSTPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:107 ../../Firmware/ultralcd.cpp:5285
|
||||
msgid "Print from host"
|
||||
msgstr "Skriv ut från värd"
|
||||
|
||||
#. MSG_REPRINT c=18
|
||||
#: ../../Firmware/messages.cpp:196 ../../Firmware/ultralcd.cpp:5243
|
||||
#: ../../Firmware/ultralcd.cpp:5245
|
||||
|
|
|
|||
Loading…
Reference in New Issue