From 7fc534f75b8f6f6b0f12cd6c9e88cdd7910383e6 Mon Sep 17 00:00:00 2001 From: Seeker4 Date: Tue, 21 May 2019 15:12:42 -0700 Subject: [PATCH] Format cmH2O properly in machine settings on Daily page. Needed only for ResMed and because formatted data is saved in database at original import. --- oscar/daily.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/oscar/daily.cpp b/oscar/daily.cpp index 0866b908..84c0a51f 100644 --- a/oscar/daily.cpp +++ b/oscar/daily.cpp @@ -964,12 +964,11 @@ QString Daily::getMachineSettings(Day * day) { ChannelID cpapmode = loader->CPAPModeChannel(); schema::Channel & chan = schema::channel[cpapmode]; - first[cpapmode] = QString("

%1

%3") + first[cpapmode] = QString("

%1

%3") .arg(chan.label()) .arg(chan.description()) .arg(day->getCPAPMode()); - if (sess) for (; it != it_end; ++it) { ChannelID code = it.key(); @@ -991,12 +990,14 @@ QString Daily::getMachineSettings(Day * day) { data = it.value().toString() + " "+ chan.units(); } + if (code ==0xe202) // Format EPR relief correctly + data = formatRelief(data); + QString tmp = QString("

%1

%3") .arg(schema::channel[code].label()) .arg(schema::channel[code].description()) .arg(data); - if ((code == CPAP_IPAP) || (code == CPAP_EPAP) || (code == CPAP_IPAPHi)