Skip to content

Commit

Permalink
Merge pull request #720 from martonmiklos/do_not_add_extra_newline_to…
Browse files Browse the repository at this point in the history
…_the_interpreted_frame_data

Do not add extra trailing newline on the decoded message texts
  • Loading branch information
collin80 authored Jan 26, 2024
2 parents ff0fcb7 + b77b876 commit 51ef3f9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dbc/dbc_classes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,16 @@ QString DBC_SIGNAL::processSignalTree(const CANFrame &frame)
if (sig->processAsText(frame, sigString))
{
qDebug() << "Returned value: " << sigString;
if (!build.isEmpty() && !sigString.isEmpty())
build.append("\n");
build.append(sigString);
build.append("\n");
if (sig->isMultiplexor)
{
qDebug() << "Spelunkin!";
build.append(sig->processSignalTree(frame));
auto subTreeString = sig->processSignalTree(frame);
if (!build.isEmpty() && !subTreeString.isEmpty())
build.append("\n");
build.append(subTreeString);
}
}
}
Expand Down

0 comments on commit 51ef3f9

Please sign in to comment.