Browse Source

🩹 Print English to serial out

Scott Lahteine 2 years ago
parent
commit
6b55eec9bb
2 changed files with 4 additions and 1 deletions
  1. 3
    0
      Marlin/src/core/multi_language.h
  2. 1
    1
      Marlin/src/module/probe.cpp

+ 3
- 0
Marlin/src/core/multi_language.h View File

@@ -80,6 +80,9 @@ typedef const char Language_Str[];
80 80
 #endif
81 81
 #define GET_TEXT_F(MSG) FPSTR(GET_TEXT(MSG))
82 82
 
83
+#define GET_EN_TEXT(MSG) GET_LANG(en)::MSG
84
+#define GET_EN_TEXT_F(MSG) FPSTR(GET_EN_TEXT(MSG))
85
+
83 86
 #define GET_LANGUAGE_NAME(INDEX) GET_LANG(LCD_LANGUAGE_##INDEX)::LANGUAGE
84 87
 #define LANG_CHARSIZE GET_TEXT(CHARSIZE)
85 88
 #define USE_WIDE_GLYPH (LANG_CHARSIZE > 2)

+ 1
- 1
Marlin/src/module/probe.cpp View File

@@ -311,7 +311,7 @@ FORCE_INLINE void probe_specific_action(const bool deploy) {
311 311
       FSTR_P const ds_str = deploy ? GET_TEXT_F(MSG_MANUAL_DEPLOY) : GET_TEXT_F(MSG_MANUAL_STOW);
312 312
       ui.return_to_status();       // To display the new status message
313 313
       ui.set_status(ds_str, 99);
314
-      SERIAL_ECHOLNF(ds_str);
314
+      SERIAL_ECHOLNF(deploy ? GET_EN_TEXT_F(MSG_MANUAL_DEPLOY) : GET_EN_TEXT_F(MSG_MANUAL_STOW));
315 315
 
316 316
       TERN_(HOST_PROMPT_SUPPORT, hostui.prompt_do(PROMPT_USER_CONTINUE, F("Stow Probe"), FPSTR(CONTINUE_STR)));
317 317
       TERN_(EXTENSIBLE_UI, ExtUI::onUserConfirmRequired(F("Stow Probe")));

Loading…
Cancel
Save