From f2fd29bc5280c66de2fc52b78b17e295bdbe509b Mon Sep 17 00:00:00 2001 From: sawinglogz <3787776-sawinglogz@users.noreply.gitlab.com> Date: Thu, 7 May 2020 14:49:07 -0400 Subject: [PATCH] Update PRS1 900X warnings based on new test data. --- oscar/SleepLib/loader_plugins/prs1_loader.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/oscar/SleepLib/loader_plugins/prs1_loader.cpp b/oscar/SleepLib/loader_plugins/prs1_loader.cpp index 809c3976..352aad4e 100644 --- a/oscar/SleepLib/loader_plugins/prs1_loader.cpp +++ b/oscar/SleepLib/loader_plugins/prs1_loader.cpp @@ -6767,14 +6767,16 @@ void PRS1DataChunk::ParseHumidifierSettingV3(unsigned char byte1, unsigned char // Check for previously unseen data that we expect to be normal: if (family == 0) { - if (tubepresent) { - // All tube temperature and humidity levels seen. - } + // All variations seen. } else if (family == 5) { if (tubepresent) { if (tubetemp != 0 && tubetemp > 4) UNEXPECTED_VALUE(tubetemp, "<= 4"); + // All humidity levels seen. + } else if (humidadaptive) { + // All humidity levels seen. + } else if (humidfixed) { + CHECK_VALUE(humidlevel, 5); } - CHECK_VALUE(humidfixed, false); } else if (family == 3) { if (tubepresent) { // All tube temperature and humidity levels seen.