mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 03:30:44 +00:00
Oximetry save was adding imported data one day back too many
This commit is contained in:
parent
a8b1d7fd0d
commit
8efd014748
@ -359,7 +359,7 @@ void CMS50Serial::onReadyRead()
|
|||||||
qDebug() << "Session start (according to CMS50)" << d << h << m;
|
qDebug() << "Session start (according to CMS50)" << d << h << m;
|
||||||
} else {
|
} else {
|
||||||
// otherwise pick the first session of the last days data..
|
// otherwise pick the first session of the last days data..
|
||||||
Day *day=PROFILE.GetDay(PROFILE.LastDay().addDays(-1),MT_CPAP);
|
Day *day=PROFILE.GetDay(PROFILE.LastDay(),MT_CPAP);
|
||||||
QDateTime d;
|
QDateTime d;
|
||||||
|
|
||||||
if (day) {
|
if (day) {
|
||||||
@ -371,7 +371,7 @@ void CMS50Serial::onReadyRead()
|
|||||||
qDebug() << "Can't guess start time, defaulting to 6pm yesterday" << d;
|
qDebug() << "Can't guess start time, defaulting to 6pm yesterday" << d;
|
||||||
d=QDateTime::currentDateTime();
|
d=QDateTime::currentDateTime();
|
||||||
d.setTime(QTime(18,0,0));
|
d.setTime(QTime(18,0,0));
|
||||||
d.addDays(-1);
|
//d.addDays(-1);
|
||||||
}
|
}
|
||||||
f2time.push_back(d);
|
f2time.push_back(d);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user