Skip to content

Commit

Permalink
Fix timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
wh201906 committed May 20, 2023
1 parent f7fd9b0 commit c73e12c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/datatab.cpp
Expand Up @@ -502,7 +502,6 @@ void DataTab::appendReceivedData(const QByteArray &data, const QVector<Metadata>
for(const Metadata& item : metadata)
{
QByteArray dataItem = data.mid(item.pos - offset, item.len);
offset += item.len;
ui->receivedEdit->appendPlainText(stringWithTimestamp(dataItem.toHex(' '), item.timestamp));
}
}
Expand All @@ -527,7 +526,6 @@ void DataTab::appendReceivedData(const QByteArray &data, const QVector<Metadata>
for(const Metadata& item : metadata)
{
QByteArray dataItem = data.mid(item.pos - offset, item.len);
offset += item.len;
if(lastReceivedByte == '\r' && !dataItem.isEmpty() && *dataItem.cbegin() == '\n')
ui->receivedEdit->appendPlainText(stringWithTimestamp(RxDecoder->toUnicode(dataItem.right(dataItem.size() - 1)), item.timestamp));
else
Expand Down

0 comments on commit c73e12c

Please sign in to comment.