From ecc6bad213a7086ca3f2568cc6c53dc8819b2dc3 Mon Sep 17 00:00:00 2001 From: sawinglogz <3787776-sawinglogz@users.noreply.gitlab.com> Date: Tue, 14 Dec 2021 17:14:47 -0500 Subject: [PATCH] Remove an unexpected data alert based on new PRS1 sample data. In this specific instance, replace it with a warning in the debug log. --- oscar/SleepLib/loader_plugins/prs1_parser.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/oscar/SleepLib/loader_plugins/prs1_parser.cpp b/oscar/SleepLib/loader_plugins/prs1_parser.cpp index e35d55d8..44b785ee 100644 --- a/oscar/SleepLib/loader_plugins/prs1_parser.cpp +++ b/oscar/SleepLib/loader_plugins/prs1_parser.cpp @@ -653,7 +653,12 @@ void PRS1DataChunk::ParseHumidifierSetting60Series(unsigned char humid1, unsigne // When no_data, reports always say "System One" with humidity level 3, regardless of humidlevel and humidsystemone if (humidsystemone + tubepresent + no_data == 0) CHECK_VALUE(humidclassic, true); // Always set when everything else is off - if (humidsystemone + tubepresent + no_data > 1) UNEXPECTED_VALUE(humid2, "one bit set"); // Only one of these ever seems to be set at a time + if (no_data && humidsystemone && add_setting == false) { + // This has been seen once on a 560P in a session that also generated a file in the error directory. + qWarning() << this->sessionid << "Humidification error during session?"; + } else { + if (humidsystemone + tubepresent + no_data > 1) UNEXPECTED_VALUE(humid2, "one bit set"); // Only one of these ever seems to be set at a time + } if (tubepresent && tubetemp == 0) CHECK_VALUE(tubehumidlevel, 0); // When the heated tube is off, tube humidity seems to be 0 if (tubepresent) humidclassic = false; // Classic mode bit is evidently ignored when tube is present