Only Hypopnea's on ResMed need the +10?

This commit is contained in:
Mark Watkins 2011-09-08 17:43:04 +10:00
parent f9fbd84866
commit 0ad08d3aca

View File

@ -503,7 +503,6 @@ bool ResmedLoader::LoadEVE(Session *sess,EDFParser &edf)
do {
t+=tolower(data[pos++]);
} while ((data[pos]!=20) && (pos<recs)); // start code
duration+=10;
if (!t.isEmpty()) {
//code=MC_UNKNOWN;
if (t=="obstructive apnea") {
@ -519,7 +518,7 @@ bool ResmedLoader::LoadEVE(Session *sess,EDFParser &edf)
EL[1]=new EventList(code,EVL_Event);
sess->eventlist[code].push_back(EL[1]);
}
EL[1]->AddEvent(tt,duration);
EL[1]->AddEvent(tt,duration+10); // Only Hyponea's Need the extra duration???
} else if (t=="apnea") {
code=CPAP_Apnea;
if (!EL[2]) {