Add #ifdef HOST_SHUTDOWN
This commit is contained in:
parent
49f9d7abdc
commit
59093107fd
|
|
@ -104,7 +104,9 @@ const char MSG_SELFTEST_WIRINGERROR[] PROGMEM_I1 = ISTR("Wiring error"); ////MSG
|
|||
const char MSG_SETTINGS[] PROGMEM_I1 = ISTR("Settings"); ////MSG_SETTINGS c=18
|
||||
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
|
||||
#ifdef HOST_SHUTDOWN
|
||||
const char MSG_SHUTDOWN_HOST[] PROGMEM_I1 = ISTR("Shutdown host"); ////MSG_SHUTDOWN_HOST c=18
|
||||
#endif //HOST_SHUTOWN
|
||||
const char MSG_SELECT_LANGUAGE[] PROGMEM_I1 = ISTR("Select language"); ////MSG_SELECT_LANGUAGE c=18
|
||||
const char MSG_SORTING_FILES[] PROGMEM_I1 = ISTR("Sorting files"); ////MSG_SORTING_FILES c=20
|
||||
const char MSG_TOTAL[] PROGMEM_I1 = ISTR("Total"); ////MSG_TOTAL c=6
|
||||
|
|
@ -235,7 +237,9 @@ const char MSG_OCTOPRINT_READY[] PROGMEM_N1 = "// action:ready"; ////
|
|||
const char MSG_OCTOPRINT_NOT_READY[] PROGMEM_N1 = "// action:not_ready"; ////
|
||||
const char MSG_OCTOPRINT_START[] PROGMEM_N1 = "// action:start"; ////
|
||||
const char MSG_OCTOPRINT_UVLO_RECOVERY_READY[] PROGMEM_N1 = "// action:uvlo_recovery_ready"; ////
|
||||
#ifdef HOST_SHUTDOWN
|
||||
const char MSG_HOST_ACTION_SHUTDOWN[] PROGMEM_N1 = "//action:shutdown"; ////
|
||||
#endif //HOST_SHUTOWN
|
||||
const char MSG_FANCHECK_HOTEND[] PROGMEM_N1 = "Err:HOTEND FAN ERROR"; ////c=20
|
||||
const char MSG_FANCHECK_PRINT[] PROGMEM_N1 = "Err:PRINT FAN ERROR"; ////c=20
|
||||
const char MSG_M112_KILL[] PROGMEM_N1 = "M112 called. Emergency Stop."; ////c=20
|
||||
|
|
|
|||
|
|
@ -106,7 +106,9 @@ extern const char MSG_SELFTEST_WIRINGERROR[];
|
|||
extern const char MSG_SETTINGS[];
|
||||
extern const char MSG_SET_READY[];
|
||||
extern const char MSG_SET_NOT_READY[];
|
||||
#ifdef HOST_SHUTDOWN
|
||||
extern const char MSG_SHUTDOWN_HOST[];
|
||||
#endif //HOST_SHUTOWN
|
||||
extern const char MSG_SELECT_LANGUAGE[];
|
||||
extern const char MSG_SORTING_FILES[];
|
||||
extern const char MSG_TOTAL[];
|
||||
|
|
@ -239,7 +241,9 @@ extern const char MSG_OCTOPRINT_READY[];
|
|||
extern const char MSG_OCTOPRINT_NOT_READY[];
|
||||
extern const char MSG_OCTOPRINT_START[];
|
||||
extern const char MSG_OCTOPRINT_UVLO_RECOVERY_READY[];
|
||||
#ifdef HOST_SHUTDOWN
|
||||
extern const char MSG_HOST_ACTION_SHUTDOWN[];
|
||||
#endif //HOST_SHUTOWN
|
||||
extern const char MSG_FANCHECK_HOTEND[];
|
||||
extern const char MSG_FANCHECK_PRINT[];
|
||||
extern const char MSG_M112_KILL[];
|
||||
|
|
|
|||
|
|
@ -5137,11 +5137,13 @@ static void lcd_printer_ready_state_toggle()
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef HOST_SHUTDOWN
|
||||
static void lcd_shutdown_menu()
|
||||
{
|
||||
SERIAL_ECHOLNRPGM(MSG_HOST_ACTION_SHUTDOWN);
|
||||
lcd_return_to_status();
|
||||
}
|
||||
#endif //HOST_SHUTOWN
|
||||
|
||||
//! @brief Show Main Menu
|
||||
//!
|
||||
|
|
@ -5338,9 +5340,11 @@ static void lcd_main_menu()
|
|||
MENU_ITEM_SUBMENU_P(_i("Fail stats MMU"), lcd_menu_fails_stats_mmu);////MSG_MMU_FAIL_STATS c=18
|
||||
}
|
||||
|
||||
#ifdef HOST_SHUTDOWN
|
||||
if (!printer_active() && M79_timer_get_status()) {
|
||||
MENU_ITEM_FUNCTION_P(_T(MSG_SHUTDOWN_HOST), lcd_shutdown_menu);
|
||||
}
|
||||
#endif //HOST_SHUTOWN
|
||||
|
||||
MENU_ITEM_SUBMENU_P(_i("Support"), lcd_support_menu);////MSG_SUPPORT c=18
|
||||
|
||||
|
|
|
|||
|
|
@ -255,6 +255,12 @@
|
|||
#define TEMP_RUNAWAY_EXTRUDER_HYSTERESIS 15
|
||||
#define TEMP_RUNAWAY_EXTRUDER_TIMEOUT 45
|
||||
|
||||
/*------------------------------------
|
||||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
*------------------------------------*/
|
||||
|
|
|
|||
|
|
@ -256,6 +256,12 @@
|
|||
#define TEMP_RUNAWAY_EXTRUDER_HYSTERESIS 15
|
||||
#define TEMP_RUNAWAY_EXTRUDER_TIMEOUT 45
|
||||
|
||||
/*------------------------------------
|
||||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
*------------------------------------*/
|
||||
|
|
|
|||
|
|
@ -255,6 +255,12 @@
|
|||
#define TEMP_RUNAWAY_EXTRUDER_HYSTERESIS 15
|
||||
#define TEMP_RUNAWAY_EXTRUDER_TIMEOUT 45
|
||||
|
||||
/*------------------------------------
|
||||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
*------------------------------------*/
|
||||
|
|
|
|||
|
|
@ -256,6 +256,12 @@
|
|||
#define TEMP_RUNAWAY_EXTRUDER_HYSTERESIS 15
|
||||
#define TEMP_RUNAWAY_EXTRUDER_TIMEOUT 45
|
||||
|
||||
/*------------------------------------
|
||||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
*------------------------------------*/
|
||||
|
|
|
|||
|
|
@ -411,6 +411,11 @@
|
|||
#include "thermal_model/e3d_REVO.h"
|
||||
#define THERMAL_MODEL_DEFAULT E3D_REVO // Default E3D REVO model parameters
|
||||
|
||||
/*------------------------------------
|
||||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -412,6 +412,11 @@
|
|||
#include "thermal_model/e3d_REVO_HF_60W.h"
|
||||
#define THERMAL_MODEL_DEFAULT E3D_REVO_HF_60W // Default E3D REVO HF 60W model parameters
|
||||
|
||||
/*------------------------------------
|
||||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -414,6 +414,11 @@
|
|||
#include "thermal_model/e3d_v6.h"
|
||||
#define THERMAL_MODEL_DEFAULT E3D_V6 // Default model parameters
|
||||
|
||||
/*------------------------------------
|
||||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -415,6 +415,11 @@
|
|||
#include "thermal_model/e3d_REVO.h"
|
||||
#define THERMAL_MODEL_DEFAULT E3D_REVO // Default E3D REVO model parameters
|
||||
|
||||
/*------------------------------------
|
||||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -416,6 +416,11 @@
|
|||
#include "thermal_model/e3d_REVO_HF_60W.h"
|
||||
#define THERMAL_MODEL_DEFAULT E3D_REVO_HF_60W // Default E3D REVO HF 60W model parameters
|
||||
|
||||
/*------------------------------------
|
||||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -418,6 +418,11 @@
|
|||
#include "thermal_model/e3d_v6.h"
|
||||
#define THERMAL_MODEL_DEFAULT E3D_V6 // Default model parameters
|
||||
|
||||
/*------------------------------------
|
||||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
|
|
|
|||
|
|
@ -184,6 +184,12 @@ ADDITIONAL FEATURES SETTINGS
|
|||
#define TEMP_RUNAWAY_EXTRUDER_HYSTERESIS 15
|
||||
#define TEMP_RUNAWAY_EXTRUDER_TIMEOUT 45
|
||||
|
||||
/*------------------------------------
|
||||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
*------------------------------------*/
|
||||
|
|
|
|||
|
|
@ -183,6 +183,12 @@ ADDITIONAL FEATURES SETTINGS
|
|||
#define TEMP_RUNAWAY_EXTRUDER_HYSTERESIS 15
|
||||
#define TEMP_RUNAWAY_EXTRUDER_TIMEOUT 45
|
||||
|
||||
/*------------------------------------
|
||||
HOST FEATURES
|
||||
*------------------------------------*/
|
||||
|
||||
//#define HOST_SHUTDOWN //Host supports "//action:shutdown" feature
|
||||
|
||||
/*------------------------------------
|
||||
MOTOR CURRENT SETTINGS
|
||||
*------------------------------------*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue