From 529686d6913494859d31649e448b67d8c54bf9ae Mon Sep 17 00:00:00 2001
From: Mark Watkins
Date: Sat, 27 Feb 2016 21:48:36 +1000
Subject: [PATCH] Interpret DreamStation Auto Trial mode as APAP
---
sleepyhead/SleepLib/loader_plugins/prs1_loader.cpp | 10 ++++++++--
sleepyhead/mainwindow.cpp | 4 ++--
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/sleepyhead/SleepLib/loader_plugins/prs1_loader.cpp b/sleepyhead/SleepLib/loader_plugins/prs1_loader.cpp
index 9d54cbe7..b24e066e 100644
--- a/sleepyhead/SleepLib/loader_plugins/prs1_loader.cpp
+++ b/sleepyhead/SleepLib/loader_plugins/prs1_loader.cpp
@@ -1912,12 +1912,12 @@ bool PRS1Import::ParseSummaryF0V6()
case 01: // ???
break;
case 10: // 0x0a
- cpapmode = MODE_CPAP; //might be C_CHECK?
+ cpapmode = MODE_CPAP;
if (dataPtr[1] != 1) qDebug() << "PRS1Loader::ParseSummaryF0V6=" << "Bad CPAP value";
imin_epap = dataPtr[2];
break;
case 13: // 0x0d
- cpapmode = MODE_APAP; //might be C_CHECK?
+ cpapmode = MODE_APAP;
if (dataPtr[1] != 2) qDebug() << "PRS1Loader::ParseSummaryF0V6=" << "Bad APAP value";
min_pressure = dataPtr[2];
max_pressure = dataPtr[3];
@@ -1937,6 +1937,12 @@ bool PRS1Import::ParseSummaryF0V6()
imin_ps = dataPtr[4];
imax_ps = dataPtr[5];
break;
+ case 0x10: // Auto Trial mode
+ cpapmode = MODE_APAP;
+ if (dataPtr[1] != 3) qDebug() << "PRS1Loader::ParseSummaryF0V6=" << "Bad APAP value";
+ min_pressure = dataPtr[3];
+ max_pressure = dataPtr[4];
+ break;
case 0x35:
duration += ( dataPtr[3] << 8 ) + dataPtr[2];
diff --git a/sleepyhead/mainwindow.cpp b/sleepyhead/mainwindow.cpp
index c2f8a0f7..b7ad6dd0 100644
--- a/sleepyhead/mainwindow.cpp
+++ b/sleepyhead/mainwindow.cpp
@@ -1420,10 +1420,10 @@ void MainWindow::on_action_About_triggered()
// Credits section
"
" +tr("Kudos & Credits") + "
" +
tr("Bugfixes, Patches and Platform Help:") + " " +
- tr("James Marshall, Rich Freeman, John Masters, Keary Griffin, Patricia Shanahan, Alec Clews, manders99, Sean Stangl, Roy Stone, François Revol, Michael Masterson.")
+ tr("James Marshall, Rich Freeman, John Masters, Keary Griffin, Patricia Shanahan, Alec Clews, manders99, Sean Stangl, Roy Stone, François Revol, Michael Masterson, RezNet, PaleRider, JediBob, Diamaunt.")
+ "
"
- "" + tr("Translators:") + " " + tr("Arie Klerk (Dutch), Steffen Reitz and Marc Stephan (German), Chen Hao (Chinese), Lars-Erik Söderström (Swedish), Damien Vigneron (French), António Jorge Costa (Portuguese), Judith Guzmán (Spanish) and others I've still to add here.") +
+ "
" + tr("Translators:") + " " + tr("Arie Klerk (Translation Coordinator, also Dutch), Steffen Reitz and Marc Stephan (German), Chen Hao (Chinese), Lars-Erik Söderström (Swedish), Damien Vigneron (French), António Jorge Costa (Portuguese), Judith Guzmán (Spanish) and others I've still to add here.") +
"
"
"" + tr("3rd Party Libaries:") + " " +