CMS50I session select test 9

This commit is contained in:
Mark Watkins 2014-08-19 14:43:04 +10:00
parent 40012c32e7
commit 2dfa356c28

View File

@ -347,13 +347,15 @@ void CMS50F37Loader::processBytes(QByteArray bytes)
if (buffer.at(idx+data) < 32) if (buffer.at(idx+data) < 32)
break; break;
} }
model = buffer.mid(idx+2, data-2); model = buffer.mid(idx+2, data-1);
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, 5); vendor = buffer.mid(idx+2, 6);
qDebug() << "Vendor:" << vendor;
} }
break; break;