From f7227b731600ea6974c2d26e4dd72c86c24a093d Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Thu, 1 Aug 2019 13:30:11 -0400 Subject: [PATCH] Don't create (summary) sessions when maskon == maskoff --- oscar/SleepLib/loader_plugins/resmed_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar/SleepLib/loader_plugins/resmed_loader.cpp b/oscar/SleepLib/loader_plugins/resmed_loader.cpp index 9f4d9717..22c3694c 100644 --- a/oscar/SleepLib/loader_plugins/resmed_loader.cpp +++ b/oscar/SleepLib/loader_plugins/resmed_loader.cpp @@ -1344,7 +1344,7 @@ void ResDayTask::run() for (int i=0;istr.maskon.size();++i) { quint32 maskon = resday->str.maskon[i]; quint32 maskoff = resday->str.maskoff[i]; - if ((maskon>0) && (maskoff>0)) { + if (((maskon>0) && (maskoff>0)) && (maskon != maskoff)) { //ignore very short sessions Session * sess = new Session(mach, maskon); sess->set_first(quint64(maskon) * 1000L); sess->set_last(quint64(maskoff) * 1000L);