mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
tidy up for https://github.com/proddy/EMS-ESP/issues/162
This commit is contained in:
19
src/ems.cpp
19
src/ems.cpp
@@ -1420,18 +1420,13 @@ void _process_RC30StatusMessage(_EMS_RxTelegram * EMS_RxTelegram) {
|
|||||||
* received every 60 seconds
|
* received every 60 seconds
|
||||||
*/
|
*/
|
||||||
void _process_RC35StatusMessage(_EMS_RxTelegram * EMS_RxTelegram) {
|
void _process_RC35StatusMessage(_EMS_RxTelegram * EMS_RxTelegram) {
|
||||||
// ignore if 14th byte is 0x00, which I think is flow temp, means HC is not is use
|
// exit if...
|
||||||
if (EMS_RxTelegram->data[14] == 0x00) {
|
// a) the 14th byte is 0x00, which I think is flow temp, means HC is not is use
|
||||||
return;
|
// b) its not a broadcast
|
||||||
}
|
// c) we have 0x7D00 as current room temp
|
||||||
|
// d) the 5th bit of the 2nd data byte is not set (e.g. x13 is ok, x03 is not) - based on examples above
|
||||||
// only process broadcasts for now
|
if ((EMS_RxTelegram->data[14] == 0x00) || (EMS_RxTelegram->dest != EMS_ID_NONE) || (EMS_RxTelegram->data[EMS_OFFSET_RC35StatusMessage_curr] == 0x7D)
|
||||||
if (EMS_RxTelegram->dest != EMS_ID_NONE) {
|
|| (_bitRead(1, 4) == 1)) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// if we have 0x7D00 as current room temp also ignore
|
|
||||||
if (EMS_RxTelegram->data[EMS_OFFSET_RC35StatusMessage_curr] == 0x7D) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user