selftest static memory error fixed; snmm: updated stop print messages
This commit is contained in:
parent
34247972f5
commit
1e734d361a
|
|
@ -26,7 +26,13 @@ const char * const MSG_ADJUSTZ_LANG_TABLE[LANG_NUM] PROGMEM = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const char MSG_ALL_EN[] PROGMEM = "All";
|
const char MSG_ALL_EN[] PROGMEM = "All";
|
||||||
const char * const MSG_ALL_LANG_TABLE[1] PROGMEM = {
|
const char MSG_ALL_CZ[] PROGMEM = "Vse";
|
||||||
|
const char * const MSG_ALL_LANG_TABLE[LANG_NUM] PROGMEM = {
|
||||||
|
MSG_ALL_EN,
|
||||||
|
MSG_ALL_CZ,
|
||||||
|
MSG_ALL_EN,
|
||||||
|
MSG_ALL_EN,
|
||||||
|
MSG_ALL_EN,
|
||||||
MSG_ALL_EN
|
MSG_ALL_EN
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -706,7 +712,13 @@ const char * const MSG_COUNT_X_LANG_TABLE[1] PROGMEM = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const char MSG_CURRENT_EN[] PROGMEM = "Current";
|
const char MSG_CURRENT_EN[] PROGMEM = "Current";
|
||||||
const char * const MSG_CURRENT_LANG_TABLE[1] PROGMEM = {
|
const char MSG_CURRENT_CZ[] PROGMEM = "Pouze aktualni";
|
||||||
|
const char * const MSG_CURRENT_LANG_TABLE[LANG_NUM] PROGMEM = {
|
||||||
|
MSG_CURRENT_EN,
|
||||||
|
MSG_CURRENT_CZ,
|
||||||
|
MSG_CURRENT_EN,
|
||||||
|
MSG_CURRENT_EN,
|
||||||
|
MSG_CURRENT_EN,
|
||||||
MSG_CURRENT_EN
|
MSG_CURRENT_EN
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -3164,8 +3176,14 @@ const char * const MSG_USB_PRINTING_LANG_TABLE[LANG_NUM] PROGMEM = {
|
||||||
MSG_USB_PRINTING_DE
|
MSG_USB_PRINTING_DE
|
||||||
};
|
};
|
||||||
|
|
||||||
const char MSG_USED_EN[] PROGMEM = "Used";
|
const char MSG_USED_EN[] PROGMEM = "Used during print";
|
||||||
const char * const MSG_USED_LANG_TABLE[1] PROGMEM = {
|
const char MSG_USED_CZ[] PROGMEM = "Pouzite behem tisku";
|
||||||
|
const char * const MSG_USED_LANG_TABLE[LANG_NUM] PROGMEM = {
|
||||||
|
MSG_USED_EN,
|
||||||
|
MSG_USED_CZ,
|
||||||
|
MSG_USED_EN,
|
||||||
|
MSG_USED_EN,
|
||||||
|
MSG_USED_EN,
|
||||||
MSG_USED_EN
|
MSG_USED_EN
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,8 @@ extern const char* const MSG_ACTIVE_EXTRUDER_LANG_TABLE[1];
|
||||||
#define MSG_ACTIVE_EXTRUDER LANG_TABLE_SELECT_EXPLICIT(MSG_ACTIVE_EXTRUDER_LANG_TABLE, 0)
|
#define MSG_ACTIVE_EXTRUDER LANG_TABLE_SELECT_EXPLICIT(MSG_ACTIVE_EXTRUDER_LANG_TABLE, 0)
|
||||||
extern const char* const MSG_ADJUSTZ_LANG_TABLE[LANG_NUM];
|
extern const char* const MSG_ADJUSTZ_LANG_TABLE[LANG_NUM];
|
||||||
#define MSG_ADJUSTZ LANG_TABLE_SELECT(MSG_ADJUSTZ_LANG_TABLE)
|
#define MSG_ADJUSTZ LANG_TABLE_SELECT(MSG_ADJUSTZ_LANG_TABLE)
|
||||||
extern const char* const MSG_ALL_LANG_TABLE[1];
|
extern const char* const MSG_ALL_LANG_TABLE[LANG_NUM];
|
||||||
#define MSG_ALL LANG_TABLE_SELECT_EXPLICIT(MSG_ALL_LANG_TABLE, 0)
|
#define MSG_ALL LANG_TABLE_SELECT(MSG_ALL_LANG_TABLE)
|
||||||
extern const char* const MSG_AMAX_LANG_TABLE[1];
|
extern const char* const MSG_AMAX_LANG_TABLE[1];
|
||||||
#define MSG_AMAX LANG_TABLE_SELECT_EXPLICIT(MSG_AMAX_LANG_TABLE, 0)
|
#define MSG_AMAX LANG_TABLE_SELECT_EXPLICIT(MSG_AMAX_LANG_TABLE, 0)
|
||||||
extern const char* const MSG_AUTHOR_LANG_TABLE[1];
|
extern const char* const MSG_AUTHOR_LANG_TABLE[1];
|
||||||
|
|
@ -142,8 +142,8 @@ extern const char* const MSG_CORRECTLY_LANG_TABLE[LANG_NUM];
|
||||||
#define MSG_CORRECTLY LANG_TABLE_SELECT(MSG_CORRECTLY_LANG_TABLE)
|
#define MSG_CORRECTLY LANG_TABLE_SELECT(MSG_CORRECTLY_LANG_TABLE)
|
||||||
extern const char* const MSG_COUNT_X_LANG_TABLE[1];
|
extern const char* const MSG_COUNT_X_LANG_TABLE[1];
|
||||||
#define MSG_COUNT_X LANG_TABLE_SELECT_EXPLICIT(MSG_COUNT_X_LANG_TABLE, 0)
|
#define MSG_COUNT_X LANG_TABLE_SELECT_EXPLICIT(MSG_COUNT_X_LANG_TABLE, 0)
|
||||||
extern const char* const MSG_CURRENT_LANG_TABLE[1];
|
extern const char* const MSG_CURRENT_LANG_TABLE[LANG_NUM];
|
||||||
#define MSG_CURRENT LANG_TABLE_SELECT_EXPLICIT(MSG_CURRENT_LANG_TABLE, 0)
|
#define MSG_CURRENT LANG_TABLE_SELECT(MSG_CURRENT_LANG_TABLE)
|
||||||
extern const char* const MSG_DISABLE_STEPPERS_LANG_TABLE[LANG_NUM];
|
extern const char* const MSG_DISABLE_STEPPERS_LANG_TABLE[LANG_NUM];
|
||||||
#define MSG_DISABLE_STEPPERS LANG_TABLE_SELECT(MSG_DISABLE_STEPPERS_LANG_TABLE)
|
#define MSG_DISABLE_STEPPERS LANG_TABLE_SELECT(MSG_DISABLE_STEPPERS_LANG_TABLE)
|
||||||
extern const char* const MSG_DWELL_LANG_TABLE[LANG_NUM];
|
extern const char* const MSG_DWELL_LANG_TABLE[LANG_NUM];
|
||||||
|
|
@ -586,8 +586,8 @@ extern const char* const MSG_UNLOAD_FILAMENT_4_LANG_TABLE[LANG_NUM];
|
||||||
#define MSG_UNLOAD_FILAMENT_4 LANG_TABLE_SELECT(MSG_UNLOAD_FILAMENT_4_LANG_TABLE)
|
#define MSG_UNLOAD_FILAMENT_4 LANG_TABLE_SELECT(MSG_UNLOAD_FILAMENT_4_LANG_TABLE)
|
||||||
extern const char* const MSG_USB_PRINTING_LANG_TABLE[LANG_NUM];
|
extern const char* const MSG_USB_PRINTING_LANG_TABLE[LANG_NUM];
|
||||||
#define MSG_USB_PRINTING LANG_TABLE_SELECT(MSG_USB_PRINTING_LANG_TABLE)
|
#define MSG_USB_PRINTING LANG_TABLE_SELECT(MSG_USB_PRINTING_LANG_TABLE)
|
||||||
extern const char* const MSG_USED_LANG_TABLE[1];
|
extern const char* const MSG_USED_LANG_TABLE[LANG_NUM];
|
||||||
#define MSG_USED LANG_TABLE_SELECT_EXPLICIT(MSG_USED_LANG_TABLE, 0)
|
#define MSG_USED LANG_TABLE_SELECT(MSG_USED_LANG_TABLE)
|
||||||
extern const char* const MSG_USERWAIT_LANG_TABLE[LANG_NUM];
|
extern const char* const MSG_USERWAIT_LANG_TABLE[LANG_NUM];
|
||||||
#define MSG_USERWAIT LANG_TABLE_SELECT(MSG_USERWAIT_LANG_TABLE)
|
#define MSG_USERWAIT LANG_TABLE_SELECT(MSG_USERWAIT_LANG_TABLE)
|
||||||
extern const char* const MSG_VMIN_LANG_TABLE[1];
|
extern const char* const MSG_VMIN_LANG_TABLE[1];
|
||||||
|
|
|
||||||
|
|
@ -292,4 +292,7 @@
|
||||||
#define MSG_TEMP_CALIBRATION_DONE "Teplotni kalibrace dokoncena. Pokracujte stiskem tlacitka."
|
#define MSG_TEMP_CALIBRATION_DONE "Teplotni kalibrace dokoncena. Pokracujte stiskem tlacitka."
|
||||||
#define MSG_TEMP_CALIBRATION_ON "Tepl. kal. [ON]"
|
#define MSG_TEMP_CALIBRATION_ON "Tepl. kal. [ON]"
|
||||||
#define MSG_TEMP_CALIBRATION_OFF "Tepl. kal. [OFF]"
|
#define MSG_TEMP_CALIBRATION_OFF "Tepl. kal. [OFF]"
|
||||||
#define MSG_PREPARE_FILAMENT "Pripravte filament"
|
#define MSG_PREPARE_FILAMENT "Pripravte filament"
|
||||||
|
#define MSG_ALL "Vse"
|
||||||
|
#define MSG_USED "Pouzite behem tisku"
|
||||||
|
#define MSG_CURRENT "Pouze aktualni"
|
||||||
|
|
@ -294,7 +294,7 @@
|
||||||
#define(length=20, lines=1) MSG_TEMP_CALIBRATION_OFF "Temp. cal. [OFF]"
|
#define(length=20, lines=1) MSG_TEMP_CALIBRATION_OFF "Temp. cal. [OFF]"
|
||||||
#define(length=20, lines=1) MSG_PREPARE_FILAMENT "Prepare new filament"
|
#define(length=20, lines=1) MSG_PREPARE_FILAMENT "Prepare new filament"
|
||||||
#define(length=19, lines=1) MSG_ALL "All"
|
#define(length=19, lines=1) MSG_ALL "All"
|
||||||
#define(length=19, lines=1) MSG_USED "Used"
|
#define(length=19, lines=1) MSG_USED "Used during print"
|
||||||
#define(length=19, lines=1) MSG_CURRENT "Current"
|
#define(length=19, lines=1) MSG_CURRENT "Current"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4319,10 +4319,11 @@ static bool lcd_selfcheck_endstops()
|
||||||
if (READ(X_MIN_PIN) ^ X_MIN_ENDSTOP_INVERTING == 1 || READ(Y_MIN_PIN) ^ Y_MIN_ENDSTOP_INVERTING == 1 || READ(Z_MIN_PIN) ^ Z_MIN_ENDSTOP_INVERTING == 1)
|
if (READ(X_MIN_PIN) ^ X_MIN_ENDSTOP_INVERTING == 1 || READ(Y_MIN_PIN) ^ Y_MIN_ENDSTOP_INVERTING == 1 || READ(Z_MIN_PIN) ^ Z_MIN_ENDSTOP_INVERTING == 1)
|
||||||
{
|
{
|
||||||
_result = false;
|
_result = false;
|
||||||
String _error = String((READ(X_MIN_PIN) ^ X_MIN_ENDSTOP_INVERTING == 1) ? "X" : "") +
|
char _error[4] = "";
|
||||||
String((READ(Y_MIN_PIN) ^ Y_MIN_ENDSTOP_INVERTING == 1) ? "Y" : "") +
|
if (READ(X_MIN_PIN) ^ X_MIN_ENDSTOP_INVERTING == 1) strcat(_error, "X");
|
||||||
String((READ(Z_MIN_PIN) ^ Z_MIN_ENDSTOP_INVERTING == 1) ? "Z" : "");
|
if (READ(Y_MIN_PIN) ^ Y_MIN_ENDSTOP_INVERTING == 1) strcat(_error, "Y");
|
||||||
lcd_selftest_error(3, _error.c_str(), "");
|
if (READ(Z_MIN_PIN) ^ Z_MIN_ENDSTOP_INVERTING == 1) strcat(_error, "Z");
|
||||||
|
lcd_selftest_error(3, _error, "");
|
||||||
}
|
}
|
||||||
manage_heater();
|
manage_heater();
|
||||||
manage_inactivity(true);
|
manage_inactivity(true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue