Add missing space in ProgressCode message

Such that:
MMU2:P=123EngageIdler
Becomes:
MMU2:P=123 EngageIdler
This commit is contained in:
Guðni Már Gilbert 2022-04-24 09:18:30 +00:00 committed by D.R.racer
parent 2142cb0849
commit 52f7fb8c51
1 changed files with 2 additions and 2 deletions

View File

@ -633,10 +633,10 @@ void MMU2::ReportError(ErrorCode ec) {
void MMU2::ReportProgress(ProgressCode pc) {
ReportProgressHook((CommandInProgress)logic.CommandInProgress(), (uint16_t)pc);
// Log progress - example: MMU2:P=123 EngageIdler
char msg[64];
int len = snprintf(msg, sizeof(msg), "MMU2:P=%hu", (uint16_t)pc);
int len = snprintf(msg, sizeof(msg), "MMU2:P=%hu ", (uint16_t)pc);
// Append a human readable form of the progress code
TranslateProgress((uint16_t)pc, &msg[len], 64 - len);