From d8bf63f61363b8ce8427997c22f71c8e0bc79b37 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Fri, 22 Aug 2014 02:45:30 +1000 Subject: [PATCH] CMS50i PI test5 --- sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp b/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp index d5ef9783..162c967e 100644 --- a/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp +++ b/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp @@ -463,7 +463,7 @@ void CMS50F37Loader::processBytes(QByteArray bytes) buf[i] = (buf[i] & 0x7f) | (msb & 0x01) ? 0x80 : 0; } - quint16 pi = buf[idx + 4] | buf[idx + 5] << 8; + quint16 pi = buf[4] | buf[5] << 8; pulse = buf[3]; quint8 spo2 = buf[2] & 0x7f; qDebug() << "Pulse=" << pulse << "SPO2=" << spo2 << "Pi=" << pi;