Correct determination of CPAP Mode

This commit is contained in:
Guy Scharf 2020-05-23 05:20:33 -07:00
parent 1659b3e6bf
commit da60a5aa99

View File

@ -304,7 +304,7 @@ EventDataType Day::settings_wavg(ChannelID code)
double s0 = 0, s1 = 0, s2 = 0, tmp; double s0 = 0, s1 = 0, s2 = 0, tmp;
for (auto & sess : sessions) { for (auto & sess : sessions) {
if (sess->enabled()) { if (sess->enabled() && sess->type() == MT_CPAP) {
auto set = sess->settings.find(code); auto set = sess->settings.find(code);
if (set != sess->settings.end()) { if (set != sess->settings.end()) {