From 2dfa356c28af5c951684502b1523f15cfd0ceaea Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Tue, 19 Aug 2014 14:43:04 +1000 Subject: [PATCH] CMS50I session select test 9 --- sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp b/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp index b9f22798..6c4ebada 100644 --- a/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp +++ b/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp @@ -347,13 +347,15 @@ void CMS50F37Loader::processBytes(QByteArray bytes) if (buffer.at(idx+data) < 32) break; } - model = buffer.mid(idx+2, data-2); + model = buffer.mid(idx+2, data-1); + qDebug() << "Model:" << model; } break; case 0x03: data = buffer.at(idx+1); if (data == 0) { - vendor = buffer.mid(idx+2, 5); + vendor = buffer.mid(idx+2, 6); + qDebug() << "Vendor:" << vendor; } break;