From 0fa066db47dc98a44029736a9eb9c4e60a1d7f6e Mon Sep 17 00:00:00 2001 From: sawinglogz <3787776-sawinglogz@users.noreply.gitlab.com> Date: Wed, 22 Apr 2020 17:00:07 -0400 Subject: [PATCH] Fix (mask) pressure waveform scaling for PRS1 960T. --- oscar/SleepLib/loader_plugins/prs1_loader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oscar/SleepLib/loader_plugins/prs1_loader.cpp b/oscar/SleepLib/loader_plugins/prs1_loader.cpp index b623a5b8..5cd26d14 100644 --- a/oscar/SleepLib/loader_plugins/prs1_loader.cpp +++ b/oscar/SleepLib/loader_plugins/prs1_loader.cpp @@ -8297,9 +8297,9 @@ void PRS1Import::ParseWaveforms() if (num > 1) { float pressure_gain = 0.1F; // standard pressure gain - if ((waveform->family == 5 && waveform->familyVersion == 3) || + if ((waveform->family == 5 && (waveform->familyVersion == 2 || waveform->familyVersion == 3)) || (waveform->family == 3 && waveform->familyVersion == 6)){ - // F5V3 and F3V6 use a gain of 0.125 rather than 0.1 to allow for a maximum value of 30 cmH2O + // F5V2, F5V3, and F3V6 use a gain of 0.125 rather than 0.1 to allow for a maximum value of 30 cmH2O pressure_gain = 0.125F; // TODO: this should be parameterized somewhere better, once we have a clear idea of which machines use this }