From 75eb96b1f978fac081853c9670cd94fa66e9cb4e Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Tue, 19 Aug 2014 14:52:23 +1000 Subject: [PATCH] CMS50I session select test 10 --- sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp b/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp index 6c4ebada..e673003e 100644 --- a/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp +++ b/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp @@ -343,18 +343,14 @@ void CMS50F37Loader::processBytes(QByteArray bytes) case 0x02: data = buffer.at(idx+1); if (data == 0) { - for (data=2; data< len; data++) { - if (buffer.at(idx+data) < 32) - break; - } - model = buffer.mid(idx+2, data-1); + model = QString(buffer.mid(idx+2, 6)); qDebug() << "Model:" << model; } break; case 0x03: data = buffer.at(idx+1); if (data == 0) { - vendor = buffer.mid(idx+2, 6); + vendor = QString(buffer.mid(idx+2, 6)); qDebug() << "Vendor:" << vendor; } break;