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); } }