Pick up some PRS changes

This commit is contained in:
Phil Olynyk 2020-05-07 16:45:17 -04:00
commit c43479672a

View File

@ -6767,14 +6767,16 @@ void PRS1DataChunk::ParseHumidifierSettingV3(unsigned char byte1, unsigned char
// Check for previously unseen data that we expect to be normal: // Check for previously unseen data that we expect to be normal:
if (family == 0) { if (family == 0) {
if (tubepresent) { // All variations seen.
// All tube temperature and humidity levels seen.
}
} else if (family == 5) { } else if (family == 5) {
if (tubepresent) { if (tubepresent) {
if (tubetemp != 0 && tubetemp > 4) UNEXPECTED_VALUE(tubetemp, "<= 4"); 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) { } else if (family == 3) {
if (tubepresent) { if (tubepresent) {
// All tube temperature and humidity levels seen. // All tube temperature and humidity levels seen.