Skip to content
Snippets Groups Projects
Commit 07bb19fe authored by Robert Loehning's avatar Robert Loehning
Browse files

Fixed Launcher::handleSupportMask

Reviewed-by: Friedemann Kleint
parent 1e6cda9b
No related branches found
No related tags found
No related merge requests found
...@@ -397,13 +397,14 @@ void Launcher::handleWaitForFinished(const TrkResult &result) ...@@ -397,13 +397,14 @@ void Launcher::handleWaitForFinished(const TrkResult &result)
void Launcher::handleSupportMask(const TrkResult &result) void Launcher::handleSupportMask(const TrkResult &result)
{ {
const char *data = result.data.data(); const char *data = result.data.data() + 1;
QByteArray str; QByteArray str;
for (int i = 0; i < 32; ++i) { for (int i = 0; i < 32; ++i) {
//str.append(" [" + formatByte(data[i]) + "]: "); //str.append(" [" + formatByte(data[i]) + "]: ");
for (int j = 0; j < 8; ++j) for (int j = 0; j < 8; ++j)
if (data[i] & (1 << j)) if (data[i] & (1 << j))
str.append(QByteArray::number(i * 8 + j, 16)); str.append(QByteArray::number(i * 8 + j, 16) + " ");
} }
logMessage("SUPPORTED: " + str); logMessage("SUPPORTED: " + str);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment