Fix Variable Pressure Support display in Daily view summary panel

This commit is contained in:
Mark Watkins 2014-05-04 01:36:21 +10:00
parent 799694dddb
commit 5efb973cac
3 changed files with 11 additions and 9 deletions

View File

@ -985,15 +985,15 @@ QString Daily::getCPAPInformation(Day * cpap)
.arg(cpap->settings_max(CPAP_IPAP),0,'f',1); .arg(cpap->settings_max(CPAP_IPAP),0,'f',1);
} }
if (cpap->settingExists(CPAP_PS)) { if (cpap->settingExists(CPAP_PSMin)) {
EventDataType psl=cpap->settings_min(CPAP_PSMin);
EventDataType psh=cpap->settings_max(CPAP_PSMax);
html+=QString(STR_TR_PS+": %1-%2"+STR_UNIT_CMH2O+"<br/>")
.arg(psl,0,'f',1)
.arg(psh,0,'f',1);
} else if (cpap->settingExists(CPAP_PS)) {
html+=QString(STR_TR_PS+": %1"+STR_UNIT_CMH2O+"<br/>") html+=QString(STR_TR_PS+": %1"+STR_UNIT_CMH2O+"<br/>")
.arg(cpap->settings_max(CPAP_PS),0,'f',1); .arg(cpap->settings_max(CPAP_PS),0,'f',1);
} else if (cpap->settingExists(CPAP_PSMin)) {
EventDataType psl=cpap->settings_min(CPAP_PSMin);
EventDataType psh=cpap->settings_max(CPAP_PSMax);
html+=QString(STR_TR_PS+": %1-%2"+STR_UNIT_CMH2O+"<br/>")
.arg(psl,0,'f',1)
.arg(psh,0,'f',1);
} }
} }
html+="</td></tr>\n"; html+="</td></tr>\n";

View File

@ -2,7 +2,7 @@
<body> <body>
<div align=center> <div align=center>
<h2><image src='qrc:/docs/sheep.png' width=64 height=64>SleepyHead <b>BETA</b></h2> <h2><image src='qrc:/docs/sheep.png' width=64 height=64>SleepyHead <b>BETA</b></h2>
<h3><b>Update Notes for v0.9.4-4</b></h3> <h3><b>Update Notes for v0.9.4-5</b></h3>
</div> </div>
<b>Changes in this version</b><br/> <b>Changes in this version</b><br/>
@ -14,6 +14,8 @@
<li>F12 to Screenshot restored on Apple Mac platform</li> <li>F12 to Screenshot restored on Apple Mac platform</li>
<li>Added CSV importer for Somnopose iOS Sleep Position application data</li> <li>Added CSV importer for Somnopose iOS Sleep Position application data</li>
<li>Added user information to Statistics page</li> <li>Added user information to Statistics page</li>
<li>Datacard autodetection ability</li>
<li>Philips Respironics 60 series fixes</li>
</list> </list>
<p>Sleep Well!</p> <p>Sleep Well!</p>

View File

@ -17,7 +17,7 @@
const int major_version = 0; const int major_version = 0;
const int minor_version = 9; const int minor_version = 9;
const int revision_number = 4; const int revision_number = 4;
const int release_number = 4; const int release_number = 5;
#ifdef UNSTABLE_BUILD #ifdef UNSTABLE_BUILD