🩹 Print English to serial out
This commit is contained in:
parent
5ef4fb378e
commit
eccbfbcede
|
@ -80,6 +80,9 @@ typedef const char Language_Str[];
|
||||||
#endif
|
#endif
|
||||||
#define GET_TEXT_F(MSG) FPSTR(GET_TEXT(MSG))
|
#define GET_TEXT_F(MSG) FPSTR(GET_TEXT(MSG))
|
||||||
|
|
||||||
|
#define GET_EN_TEXT(MSG) GET_LANG(en)::MSG
|
||||||
|
#define GET_EN_TEXT_F(MSG) FPSTR(GET_EN_TEXT(MSG))
|
||||||
|
|
||||||
#define GET_LANGUAGE_NAME(INDEX) GET_LANG(LCD_LANGUAGE_##INDEX)::LANGUAGE
|
#define GET_LANGUAGE_NAME(INDEX) GET_LANG(LCD_LANGUAGE_##INDEX)::LANGUAGE
|
||||||
#define LANG_CHARSIZE GET_TEXT(CHARSIZE)
|
#define LANG_CHARSIZE GET_TEXT(CHARSIZE)
|
||||||
#define USE_WIDE_GLYPH (LANG_CHARSIZE > 2)
|
#define USE_WIDE_GLYPH (LANG_CHARSIZE > 2)
|
||||||
|
|
|
@ -311,7 +311,7 @@ FORCE_INLINE void probe_specific_action(const bool deploy) {
|
||||||
FSTR_P const ds_str = deploy ? GET_TEXT_F(MSG_MANUAL_DEPLOY) : GET_TEXT_F(MSG_MANUAL_STOW);
|
FSTR_P const ds_str = deploy ? GET_TEXT_F(MSG_MANUAL_DEPLOY) : GET_TEXT_F(MSG_MANUAL_STOW);
|
||||||
ui.return_to_status(); // To display the new status message
|
ui.return_to_status(); // To display the new status message
|
||||||
ui.set_status(ds_str, 99);
|
ui.set_status(ds_str, 99);
|
||||||
SERIAL_ECHOLNF(ds_str);
|
SERIAL_ECHOLNF(deploy ? GET_EN_TEXT_F(MSG_MANUAL_DEPLOY) : GET_EN_TEXT_F(MSG_MANUAL_STOW));
|
||||||
|
|
||||||
TERN_(HOST_PROMPT_SUPPORT, hostui.prompt_do(PROMPT_USER_CONTINUE, F("Stow Probe"), FPSTR(CONTINUE_STR)));
|
TERN_(HOST_PROMPT_SUPPORT, hostui.prompt_do(PROMPT_USER_CONTINUE, F("Stow Probe"), FPSTR(CONTINUE_STR)));
|
||||||
TERN_(EXTENSIBLE_UI, ExtUI::onUserConfirmRequired(F("Stow Probe")));
|
TERN_(EXTENSIBLE_UI, ExtUI::onUserConfirmRequired(F("Stow Probe")));
|
||||||
|
|
Loading…
Reference in a new issue