add log binary data from UART. all Works
This commit is contained in:
@@ -16,7 +16,7 @@ void Logger::write(const QString& file, const QString& text)
|
||||
f.close();
|
||||
}
|
||||
|
||||
void Logger::saveTestLog(const QString& filename, const QJsonObject& cfg,
|
||||
void Logger::saveTestLog(const QString& filename, const QByteArray& rx, const QJsonObject& cfg,
|
||||
bool passed, QString& error, QString mismatches)
|
||||
{
|
||||
QString log;
|
||||
@@ -47,6 +47,11 @@ void Logger::saveTestLog(const QString& filename, const QJsonObject& cfg,
|
||||
log += "\n";
|
||||
}
|
||||
|
||||
log += "\n--- FULL LOG ---\n";
|
||||
|
||||
log += QString::fromUtf8(rx.toHex(' '));
|
||||
log += "\n";
|
||||
|
||||
log += "<<<TEST_END>>>\n";
|
||||
|
||||
write(filename, log);
|
||||
|
||||
Reference in New Issue
Block a user