mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 11:10:44 +00:00
fixed segfault bug while importing SDcard data of Philips Respironics System One (60 Series) Model 560PBT
This commit is contained in:
parent
0e04bd991b
commit
e3fe01e134
@ -1431,9 +1431,11 @@ bool PRS1Import::ParseF0Events()
|
|||||||
if ((event->family == 0) && (event->familyVersion >= 4)) { // BiPAP Pressure
|
if ((event->family == 0) && (event->familyVersion >= 4)) { // BiPAP Pressure
|
||||||
if (!EPAP) {
|
if (!EPAP) {
|
||||||
if (!(EPAP = session->AddEventList(CPAP_EPAP, EVL_Event, 0.1F))) { return false; }
|
if (!(EPAP = session->AddEventList(CPAP_EPAP, EVL_Event, 0.1F))) { return false; }
|
||||||
|
}
|
||||||
|
if(!IPAP) {
|
||||||
if (!(IPAP = session->AddEventList(CPAP_IPAP, EVL_Event, 0.1F))) { return false; }
|
if (!(IPAP = session->AddEventList(CPAP_IPAP, EVL_Event, 0.1F))) { return false; }
|
||||||
|
}
|
||||||
|
if(!PS) {
|
||||||
if (!(PS = session->AddEventList(CPAP_PS, EVL_Event, 0.1F))) { return false; }
|
if (!(PS = session->AddEventList(CPAP_PS, EVL_Event, 0.1F))) { return false; }
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1464,9 +1466,11 @@ bool PRS1Import::ParseF0Events()
|
|||||||
} else {
|
} else {
|
||||||
if (!EPAP) {
|
if (!EPAP) {
|
||||||
if (!(EPAP = session->AddEventList(CPAP_EPAP, EVL_Event, 0.1F))) { return false; }
|
if (!(EPAP = session->AddEventList(CPAP_EPAP, EVL_Event, 0.1F))) { return false; }
|
||||||
|
}
|
||||||
|
if(!IPAP) {
|
||||||
if (!(IPAP = session->AddEventList(CPAP_IPAP, EVL_Event, 0.1F))) { return false; }
|
if (!(IPAP = session->AddEventList(CPAP_IPAP, EVL_Event, 0.1F))) { return false; }
|
||||||
|
}
|
||||||
|
if(!PS) {
|
||||||
if (!(PS = session->AddEventList(CPAP_PS, EVL_Event, 0.1F))) { return false; }
|
if (!(PS = session->AddEventList(CPAP_PS, EVL_Event, 0.1F))) { return false; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user