From 485ed4a2136529a5d6af452c354664507b7e83f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sun, 7 Aug 2022 19:09:41 +0000 Subject: [PATCH] Fix issue where logs show two corrupted chars Issue only appears when LANG_MODE = 1 --- Firmware/mmu2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/mmu2.cpp b/Firmware/mmu2.cpp index 149773782..ae871f8de 100644 --- a/Firmware/mmu2.cpp +++ b/Firmware/mmu2.cpp @@ -811,7 +811,7 @@ void MMU2::ReportError(ErrorCode ec, uint8_t res) { if( ec != lastErrorCode ){ // deduplicate: only report changes in error codes into the log lastErrorCode = ec; SERIAL_ECHO_START; - SERIAL_ECHOLNRPGM( PrusaErrorTitle(PrusaErrorCodeIndex((uint16_t)ec)) ); + SERIAL_ECHOLNRPGM( _T(PrusaErrorTitle(PrusaErrorCodeIndex((uint16_t)ec))) ); } static_assert(mmu2Magic[0] == 'M' @@ -828,7 +828,7 @@ void MMU2::ReportProgress(ProgressCode pc) { ReportProgressHook((CommandInProgress)logic.CommandInProgress(), (uint16_t)pc); SERIAL_ECHO_START; - SERIAL_ECHOLNRPGM( ProgressCodeToText((uint16_t)pc) ); + SERIAL_ECHOLNRPGM( _T(ProgressCodeToText((uint16_t)pc)) ); } void MMU2::OnMMUProgressMsg(ProgressCode pc){