mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 19:20:45 +00:00
Fix AirSense EPR on/off status
This commit is contained in:
parent
1eaa395972
commit
db1559a545
@ -385,6 +385,19 @@ void ResmedLoader::ParseSTR(Machine *mach, QStringList strfiles)
|
|||||||
epr = EventDataType(sig->data[rec]) * sig->gain + sig->offset;
|
epr = EventDataType(sig->data[rec]) * sig->gain + sig->offset;
|
||||||
epr += 1;
|
epr += 1;
|
||||||
}
|
}
|
||||||
|
int epr_on=0, clin_epr_on=0;
|
||||||
|
if ((sig = str.lookupLabel("S.EPR.EPREnable"))) { // first check machines opinion
|
||||||
|
epr_on = EventDataType(sig->data[rec]) * sig->gain + sig->offset;
|
||||||
|
}
|
||||||
|
if (epr_on && (sig = str.lookupLabel("S.EPR.ClinEnable"))) {
|
||||||
|
clin_epr_on = EventDataType(sig->data[rec]) * sig->gain + sig->offset;
|
||||||
|
}
|
||||||
|
if (!(epr_on && clin_epr_on)) {
|
||||||
|
epr = 0;
|
||||||
|
epr_level = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user