CMS50I session select test 10

This commit is contained in:
Mark Watkins 2014-08-19 14:52:23 +10:00
parent 2dfa356c28
commit 75eb96b1f9

View File

@ -343,18 +343,14 @@ void CMS50F37Loader::processBytes(QByteArray bytes)
case 0x02: case 0x02:
data = buffer.at(idx+1); data = buffer.at(idx+1);
if (data == 0) { if (data == 0) {
for (data=2; data< len; data++) { model = QString(buffer.mid(idx+2, 6));
if (buffer.at(idx+data) < 32)
break;
}
model = buffer.mid(idx+2, data-1);
qDebug() << "Model:" << model; qDebug() << "Model:" << model;
} }
break; break;
case 0x03: case 0x03:
data = buffer.at(idx+1); data = buffer.at(idx+1);
if (data == 0) { if (data == 0) {
vendor = buffer.mid(idx+2, 6); vendor = QString(buffer.mid(idx+2, 6));
qDebug() << "Vendor:" << vendor; qDebug() << "Vendor:" << vendor;
} }
break; break;