From 3b02abe63c1102fe53ef6a912466d31a23ced6d4 Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Tue, 13 Jul 2021 14:36:31 -0400 Subject: [PATCH] Remove bogus limits on pressures in LoadPLD --- .../SleepLib/loader_plugins/resmed_loader.cpp | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/oscar/SleepLib/loader_plugins/resmed_loader.cpp b/oscar/SleepLib/loader_plugins/resmed_loader.cpp index a4794520..20b23760 100644 --- a/oscar/SleepLib/loader_plugins/resmed_loader.cpp +++ b/oscar/SleepLib/loader_plugins/resmed_loader.cpp @@ -3031,18 +3031,18 @@ bool ResmedLoader::LoadPLD(Session *sess, const QString & path) ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square); } else if (matchSignal(CPAP_Pressure, es.label)) { code = CPAP_Pressure; - es.physical_maximum = 25; - es.physical_minimum = 4; +// es.physical_maximum = 25; +// es.physical_minimum = 4; ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square); } else if (matchSignal(CPAP_IPAP, es.label)) { code = CPAP_IPAP; - es.physical_maximum = 25; - es.physical_minimum = 4; +// es.physical_maximum = 25; +// es.physical_minimum = 4; ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square); } else if (matchSignal(CPAP_EPAP, es.label)) { // Expiratory Pressure code = CPAP_EPAP; - es.physical_maximum = 25; - es.physical_minimum = 4; +// es.physical_maximum = 25; +// es.physical_minimum = 4; ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square); } else if (matchSignal(CPAP_MinuteVent,es.label)) { @@ -3076,8 +3076,8 @@ bool ResmedLoader::LoadPLD(Session *sess, const QString & path) ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square); } else if (matchSignal(CPAP_MaskPressure, es.label)) { code = CPAP_MaskPressure; - es.physical_maximum = 25; - es.physical_minimum = 4; +// es.physical_maximum = 25; +// es.physical_minimum = 4; ToTimeDelta(sess, edf, es, code, samples, duration, 0, 0, square); } else if (matchSignal(CPAP_IE, es.label)) { //I:E ratio @@ -3237,8 +3237,8 @@ void ResmedLoader::ToTimeDelta(Session *sess, ResMedEDFInfo &edf, EDFSignal &es, } if (forceDebug && ((code == CPAP_Pressure) || (code == CPAP_IPAP) || (code == CPAP_EPAP)) ) - qDebug() << "Before loop to buildEventList" << el->count() << "Last:" << last*es.gain << "Next:" << (*sptr)*es.gain << "Pos:" << sptr - es.dataArray << - QDateTime::fromMSecsSinceEpoch(tt).toString(); + qDebug() << "Before loop to buildEventList" << el->count() << "Last:" << last*es.gain << "Next:" << (*sptr)*es.gain << + "Pos:" << sptr - es.dataArray << QDateTime::fromMSecsSinceEpoch(tt).toString(); for (; sptr < eptr; sptr++) { c = *sptr; if (last != c) {