From da60a5aa99f2f8469336748d11cb48ea57402036 Mon Sep 17 00:00:00 2001 From: Guy Scharf Date: Sat, 23 May 2020 05:20:33 -0700 Subject: [PATCH] Correct determination of CPAP Mode --- oscar/SleepLib/day.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar/SleepLib/day.cpp b/oscar/SleepLib/day.cpp index 0b0a2f59..bc386795 100644 --- a/oscar/SleepLib/day.cpp +++ b/oscar/SleepLib/day.cpp @@ -304,7 +304,7 @@ EventDataType Day::settings_wavg(ChannelID code) double s0 = 0, s1 = 0, s2 = 0, tmp; for (auto & sess : sessions) { - if (sess->enabled()) { + if (sess->enabled() && sess->type() == MT_CPAP) { auto set = sess->settings.find(code); if (set != sess->settings.end()) {