Skip to content

Commit

Permalink
Merge pull request #800 from SebKuzminsky/fix-signal-pretty-output
Browse files Browse the repository at this point in the history
signal makePrettyOutput: add a space between value and unit
  • Loading branch information
collin80 authored Jul 9, 2024
2 parents 28d12a7 + d433c8e commit 3579bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbc/dbc_classes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ QString DBC_SIGNAL::makePrettyOutput(double floatVal, int64_t intVal, bool outpu
}
}
if (!foundVal) outputString += QString::number(intVal);
if (outputUnit) outputString += unitName;
if (outputUnit) outputString += " " + unitName;
}
else //otherwise display the actual number and unit (if it exists)
{
outputString += (isInteger ? QString::number(intVal) : QString::number(floatVal));
if (outputUnit) outputString += unitName;
if (outputUnit) outputString += " " + unitName;
}
return outputString;
}
Expand Down

0 comments on commit 3579bdb

Please sign in to comment.