mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Restore CPAP_MaskPressureHi plots when available
This commit is contained in:
parent
123254757d
commit
b6d4b8cd99
@ -77,8 +77,18 @@ void gLineChart::SetDay(Day *d)
|
||||
for (int i = 0; i < d->size(); i++) {
|
||||
Session *sess = d->getSessions()[i];
|
||||
|
||||
if (!sess->channelExists(code)) { continue; }
|
||||
if (code == CPAP_MaskPressure) {
|
||||
if (sess->channelExists(CPAP_MaskPressureHi)) {
|
||||
code = m_codes[j] = CPAP_MaskPressureHi;
|
||||
goto skipcheck; // why not :P
|
||||
}
|
||||
}
|
||||
|
||||
if (!sess->channelExists(code)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
skipcheck:
|
||||
if (first) {
|
||||
m_miny = sess->Min(code);
|
||||
m_maxy = sess->Max(code);
|
||||
|
Loading…
Reference in New Issue
Block a user