Change setMin/Max to updateMin/Max in LoadEDF procedures

This commit is contained in:
Phil Olynyk 2020-05-14 21:10:03 -04:00
parent 6fcd82a296
commit 71e156dfed

View File

@ -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);