From 51549234eb7560295e1d97502017e2395846a15a Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Wed, 20 Aug 2014 14:17:32 +1000 Subject: [PATCH] Even More CMS50F durations stuffs --- 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 9114e315..e8579d67 100644 --- a/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp +++ b/sleepyhead/SleepLib/loader_plugins/cms50f37_loader.cpp @@ -387,7 +387,7 @@ void CMS50F37Loader::processBytes(QByteArray bytes) duration = ((buffer.at(idx+1) & 0x4) << 5); duration |= buffer.at(idx+4); duration |= (buffer.at(idx+5) | ((buffer.at(idx+1) & 0x8) << 4)) << 8; - duration |= (buffer.at(idx+6) | ((buffer.at(idx+1) & 0x16) << 4)) << 16; + duration |= (buffer.at(idx+6) | ((buffer.at(idx+1) & 0x10) << 3)) << 16; break; // COMMAND_GET_SESSION_COUNT