From 7cbdbdf8b7a4fc41f51e879bb2b467fdc4a8e526 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Wed, 20 Aug 2014 00:31:21 +1000 Subject: [PATCH] Oximetry fix #372345 --- 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 252cb37e..fb7723e6 100644 --- a/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp +++ b/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp @@ -456,7 +456,7 @@ void CMS50F37Loader::processBytes(QByteArray bytes) buffer[idx+i] = (buffer[idx+i] & 0x7f) | (msb & 0x01 ? 0x80 : 0); } - quint16 pi = (((quint8)buffer.at(idx+1) & 4) << 5) | (quint8)buffer.at(idx + 4) | (buffer.at(idx + 5) << 8); + quint16 pi = (quint8)buffer.at(idx + 4) | (buffer.at(idx + 5) << 8); pulse = buffer.at(idx+3); quint8 spo2 = buffer.at(idx+2);