From 571e6fabfaf7feb7c16c7f20d79a03b14229e103 Mon Sep 17 00:00:00 2001 From: 3d-gussner <3d.gussner@gmail.com> Date: Tue, 22 Feb 2022 12:36:33 +0100 Subject: [PATCH] FW Crash messages will not be translated --- Firmware/Marlin_main.cpp | 10 +++++----- Firmware/ultralcd.cpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 06c699a9..fd317fe1 100755 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -1011,7 +1011,7 @@ static void fw_crash_init() eeprom_read_byte((uint8_t*)EEPROM_FW_CRASH_FLAG) != 0xFF) { lcd_show_fullscreen_message_and_wait_P( - _i("FW crash detected! " + _n("FW crash detected! " "You can continue printing. " "Debug data available for analysis. " "Contact support to submit details.")); @@ -1025,17 +1025,17 @@ static void fw_crash_init() lcd_beeper_quick_feedback(); lcd_clear(); - lcd_puts_P(_i("FIRMWARE CRASH!\nCrash reason:\n")); + lcd_puts_P(_n("FIRMWARE CRASH!\nCrash reason:\n")); switch(crash_reason) { case dump_crash_reason::stack_error: - lcd_puts_P(_i("Static memory has\nbeen overwritten")); + lcd_puts_P(_n("Static memory has\nbeen overwritten")); break; case dump_crash_reason::watchdog: - lcd_puts_P(_i("Watchdog timeout")); + lcd_puts_P(_n("Watchdog timeout")); break; case dump_crash_reason::bad_isr: - lcd_puts_P(_i("Bad interrupt")); + lcd_puts_P(_n("Bad interrupt")); break; default: lcd_print((uint8_t)crash_reason); diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 25dae8f3..92cd4168 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -2051,11 +2051,11 @@ static void lcd_support_menu() #endif //defined VOLT_BED_PIN || defined VOLT_PWR_PIN #ifdef MENU_DUMP - MENU_ITEM_FUNCTION_P(_i("Dump memory"), lcd_dump_memory); + MENU_ITEM_FUNCTION_P(_n("Dump memory"), lcd_dump_memory); #endif //MENU_DUMP #ifdef MENU_SERIAL_DUMP if (emergency_serial_dump) - MENU_ITEM_FUNCTION_P(_i("Dump to serial"), lcd_serial_dump); + MENU_ITEM_FUNCTION_P(_n("Dump to serial"), lcd_serial_dump); #endif #ifdef DEBUG_BUILD #ifdef EMERGENCY_HANDLERS