Fix issue where logs show two corrupted chars

Issue only appears when LANG_MODE = 1
This commit is contained in:
Guðni Már Gilbert 2022-08-07 19:09:41 +00:00 committed by D.R.racer
parent 938fac4058
commit 485ed4a213
1 changed files with 2 additions and 2 deletions

View File

@ -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){