Do not add extra newline on the DBC decoded message texts
This commit is contained in:
+6
-2
@@ -76,12 +76,16 @@ QString DBC_SIGNAL::processSignalTree(const CANFrame &frame)
|
|||||||
if (sig->processAsText(frame, sigString))
|
if (sig->processAsText(frame, sigString))
|
||||||
{
|
{
|
||||||
qDebug() << "Returned value: " << sigString;
|
qDebug() << "Returned value: " << sigString;
|
||||||
|
if (!build.isEmpty() && !sigString.isEmpty())
|
||||||
|
build.append("\n");
|
||||||
build.append(sigString);
|
build.append(sigString);
|
||||||
build.append("\n");
|
|
||||||
if (sig->isMultiplexor)
|
if (sig->isMultiplexor)
|
||||||
{
|
{
|
||||||
qDebug() << "Spelunkin!";
|
qDebug() << "Spelunkin!";
|
||||||
build.append(sig->processSignalTree(frame));
|
auto subTreeString = sig->processSignalTree(frame);
|
||||||
|
if (!build.isEmpty() && !subTreeString.isEmpty())
|
||||||
|
build.append("\n");
|
||||||
|
build.append(subTreeString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user