mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50:44 +00:00
Forgot to multiply ResMed EPR stuff by signal gain
This commit is contained in:
parent
bd793adfc9
commit
a1e62ed695
@ -72,6 +72,7 @@ void SummaryChart::SetDay(Day * nullday)
|
||||
addSlice(CPAP_EPAP,QColor("green"),ST_SETMIN,true);
|
||||
addSlice(CPAP_EPAP,QColor("light green"),ST_PERC,true,0.95);
|
||||
|
||||
addSlice(CPAP_IPAP,QColor("light cyan"),ST_WAVG,true);
|
||||
addSlice(CPAP_IPAP,QColor("light blue"),ST_PERC,true,0.95);
|
||||
addSlice(CPAP_IPAP,QColor("blue"),ST_SETMAX,true);
|
||||
} else if (mode>=MODE_APAP) {
|
||||
|
@ -604,12 +604,11 @@ int ResmedLoader::Open(QString & path,Profile *profile)
|
||||
// Note: AutoSV machines don't have both fields
|
||||
sig=stredf.lookupSignal(RMS9_EPR);
|
||||
if (sig) {
|
||||
int i=sig->data[dn];
|
||||
sess->settings[CPAP_PresReliefMode]=i;
|
||||
sess->settings[CPAP_PresReliefMode]=EventDataType(sig->data[dn])*sig->gain;
|
||||
}
|
||||
sig=stredf.lookupSignal(RMS9_EPRSet);
|
||||
if (sig) {
|
||||
sess->settings[CPAP_PresReliefSet]=sig->data[dn];
|
||||
sess->settings[CPAP_PresReliefSet]=EventDataType(sig->data[dn])*sig->gain;
|
||||
}
|
||||
|
||||
|
||||
@ -981,14 +980,12 @@ int ResmedLoader::Open(QString & path,Profile *profile)
|
||||
// AutoSV machines don't have both fields
|
||||
sig=stredf.lookupSignal(RMS9_EPR);
|
||||
if (sig) {
|
||||
int i=sig->data[dn];
|
||||
sess->settings[CPAP_PresReliefMode]=i;
|
||||
|
||||
sess->settings[CPAP_PresReliefMode]=EventDataType(sig->data[dn])*sig->gain;
|
||||
}
|
||||
|
||||
sig=stredf.lookupSignal(RMS9_EPRSet);
|
||||
if (sig) {
|
||||
sess->settings[CPAP_PresReliefSet]=sig->data[dn];
|
||||
sess->settings[CPAP_PresReliefSet]=EventDataType(sig->data[dn])*sig->gain;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user