Fix DV64 pressure chart segments not displaying

This commit is contained in:
Mark Watkins 2018-06-10 19:09:01 +10:00
parent 1526601744
commit b9c3baafb1

View File

@ -922,7 +922,7 @@ int IntellipapLoader::OpenDV6(const QString & path)
if (ts1 >= R->start_time) { if (ts1 >= R->start_time) {
if (!flow && R->sess) { if (!flow && R->sess) {
flow = R->sess->AddEventList(CPAP_FlowRate, EVL_Waveform, 1.0f/60.0f, 0.0f, 0.0f, 0.0f, double(2000) / double(50)); flow = R->sess->AddEventList(CPAP_FlowRate, EVL_Waveform, 1.0f/60.0f, 0.0f, 0.0f, 0.0f, double(2000) / double(50));
pressure = R->sess->AddEventList(CPAP_Pressure, EVL_Waveform, 0.1f, 0.0f, 0.0f, 0.0f, double(2000) / double(2)); pressure = R->sess->AddEventList(CPAP_MaskPressure, EVL_Waveform, 0.1f, 0.0f, 0.0f, 0.0f, double(2000) / double(2));
//leak = R->sess->AddEventList(CPAP_Leak, EVL_Waveform, 1.0, 0.0, 0.0, 0.0, double(2000) / double(1)); //leak = R->sess->AddEventList(CPAP_Leak, EVL_Waveform, 1.0, 0.0, 0.0, 0.0, double(2000) / double(1));
OA = R->sess->AddEventList(CPAP_Obstructive, EVL_Event); OA = R->sess->AddEventList(CPAP_Obstructive, EVL_Event);
NOA = R->sess->AddEventList(CPAP_NRI, EVL_Event); NOA = R->sess->AddEventList(CPAP_NRI, EVL_Event);
@ -1354,10 +1354,10 @@ int IntellipapLoader::OpenDV6(const QString & path)
MV = R->sess->AddEventList(CPAP_MinuteVent, EVL_Event); MV = R->sess->AddEventList(CPAP_MinuteVent, EVL_Event);
TV = R->sess->AddEventList(CPAP_TidalVolume, EVL_Event); TV = R->sess->AddEventList(CPAP_TidalVolume, EVL_Event);
if (!R->sess->channelDataExists(CPAP_Pressure)) { //if (!R->sess->channelDataExists(CPAP_Pressure)) {
// Don't use this pressure if we have higher resolution available // Don't use this pressure if we have higher resolution available
Pressure = R->sess->AddEventList(CPAP_Pressure, EVL_Event); Pressure = R->sess->AddEventList(CPAP_Pressure, EVL_Event);
} //}
} }
if (leak) { if (leak) {
sess = R->sess; sess = R->sess;