Fix 0.00 ahi days occasionally displaying as no data. Stopped CPAP_Leak calculation for PRS1 APAP and greater as it's not accurate yet

This commit is contained in:
Mark Watkins 2012-01-12 15:06:19 +10:00
parent 0bd5c35706
commit b1e18aa25c
2 changed files with 6 additions and 2 deletions

View File

@ -175,6 +175,10 @@ void SummaryChart::SetDay(Day * nullday)
type=m_type[j]; type=m_type[j];
} }
} }
if (code==CPAP_Hypopnea) { // Make sure at least one of the CPAP data gets through with 0
hascode=true;
}
if (hascode) { if (hascode) {
m_days[dn]=day; m_days[dn]=day;
switch(type) { switch(type) {

View File

@ -903,9 +903,9 @@ int calcLeaks(Session *session)
if (session->eventlist.contains(CPAP_Leak)) return 0; // abort if already there if (session->eventlist.contains(CPAP_Leak)) return 0; // abort if already there
if (!session->eventlist.contains(CPAP_LeakTotal)) return 0; // can't calculate without this.. if (!session->eventlist.contains(CPAP_LeakTotal)) return 0; // can't calculate without this..
if (session->settings[CPAP_Mode].toInt()>MODE_APAP) return 0; // Don't bother calculating when in APAP mode if (session->settings[CPAP_Mode].toInt()>=MODE_APAP) return 0; // Don't bother calculating when in APAP mode
const qint64 winsize=3600000; // 5 minute window const qint64 winsize=3600000;
//qint64 first=session->first(), last=session->last(), f; //qint64 first=session->first(), last=session->last(), f;