From 71e156dfeda721fed5e901d6d404cdf803d53806 Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Thu, 14 May 2020 21:10:03 -0400 Subject: [PATCH] Change setMin/Max to updateMin/Max in LoadEDF procedures --- oscar/SleepLib/loader_plugins/resmed_loader.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/oscar/SleepLib/loader_plugins/resmed_loader.cpp b/oscar/SleepLib/loader_plugins/resmed_loader.cpp index 8fb5d91e..f4e5729b 100644 --- a/oscar/SleepLib/loader_plugins/resmed_loader.cpp +++ b/oscar/SleepLib/loader_plugins/resmed_loader.cpp @@ -2541,8 +2541,8 @@ bool ResmedLoader::LoadBRP(Session *sess, const QString & path) if (max > es.physical_maximum) max = es.physical_maximum; - sess->setMin(code, min); - sess->setMax(code, max); + sess->updateMin(code, min); + sess->updateMax(code, max); sess->setPhysMin(code, es.physical_minimum); sess->setPhysMax(code, es.physical_maximum); } @@ -2800,8 +2800,8 @@ bool ResmedLoader::LoadPLD(Session *sess, const QString & path) } if (a) { - sess->setMin(code, a->Min()); - sess->setMax(code, a->Max()); + sess->updateMin(code, a->Min()); + sess->updateMax(code, a->Max()); sess->setPhysMin(code, es.physical_minimum); sess->setPhysMax(code, es.physical_maximum); a->setDimension(es.physical_dimension); @@ -2900,8 +2900,8 @@ void ResmedLoader::ToTimeDelta(Session *sess, ResMedEDFInfo &edf, EDFSignal &es, if ((tmp >= t_min) && (tmp <= t_max)) el->AddEvent(tt, c); - sess->setMin(code, min); - sess->setMax(code, max); + sess->updateMin(code, min); + sess->updateMax(code, max); sess->setPhysMin(code, es.physical_minimum); sess->setPhysMax(code, es.physical_maximum); sess->updateLast(tt);