From d0bb6414b628040e76ec0f7be353fb832ba2c371 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sat, 12 Jul 2014 21:15:18 +1000 Subject: [PATCH] ResMed VPAP-S Pressure display fix --- sleepyhead/SleepLib/loader_plugins/resmed_loader.cpp | 2 +- sleepyhead/statistics.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sleepyhead/SleepLib/loader_plugins/resmed_loader.cpp b/sleepyhead/SleepLib/loader_plugins/resmed_loader.cpp index a15d44fc..e63f5343 100644 --- a/sleepyhead/SleepLib/loader_plugins/resmed_loader.cpp +++ b/sleepyhead/SleepLib/loader_plugins/resmed_loader.cpp @@ -281,7 +281,7 @@ void ResmedLoader::ParseSTR(Machine *mach, QStringList strfiles) if (mod >= 7) { mode = MODE_ASV; - } else if (mod >= 5) { + } else if (mod >= 3) { mode = MODE_BIPAP; } else if (mod >= 1) { mode = MODE_APAP; diff --git a/sleepyhead/statistics.cpp b/sleepyhead/statistics.cpp index aff816b7..a210e91a 100644 --- a/sleepyhead/statistics.cpp +++ b/sleepyhead/statistics.cpp @@ -799,6 +799,8 @@ QString Statistics::GenerateHTML() if (day->settingExists(CPAP_IPAPHi)) { maxipap = day->settings_max(CPAP_IPAPHi); + } else if (day->settingExists(CPAP_IPAP)) { + maxipap = day->settings_max(CPAP_IPAP); } }