mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
#238 - various optimizatons for multiple HCs on RC35s
This commit is contained in:
10
src/ems.cpp
10
src/ems.cpp
@@ -1194,8 +1194,9 @@ void _process_RC30StatusMessage(_EMS_RxTelegram * EMS_RxTelegram) {
|
|||||||
void _process_RC35StatusMessage(_EMS_RxTelegram * EMS_RxTelegram) {
|
void _process_RC35StatusMessage(_EMS_RxTelegram * EMS_RxTelegram) {
|
||||||
// exit if...
|
// exit if...
|
||||||
// - the 15th byte (second from last) is 0x00, which I think is flow temp, means HC is not is use
|
// - the 15th byte (second from last) is 0x00, which I think is flow temp, means HC is not is use
|
||||||
// - its not a broadcast, so destination is 0x00
|
// - its not a broadcast, so destination is 0x00 (not in use since 6/1/2020 - issue #238)
|
||||||
if ((EMS_RxTelegram->data[14] == 0x00) || (EMS_RxTelegram->dest != EMS_ID_NONE)) {
|
// if ((EMS_RxTelegram->data[14] == 0x00) || (EMS_RxTelegram->dest != EMS_ID_NONE)) {
|
||||||
|
if (EMS_RxTelegram->data[14] == 0x00) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1368,6 +1369,11 @@ int8_t _getHeatingCircuit(_EMS_RxTelegram * EMS_RxTelegram) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ignore telegrams that have no data, or only a single byte
|
||||||
|
if (EMS_RxTelegram->data_length <= 1) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
int8_t hc;
|
int8_t hc;
|
||||||
|
|
||||||
switch (EMS_RxTelegram->type) {
|
switch (EMS_RxTelegram->type) {
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
#define APP_VERSION "1.9.5b14"
|
#define APP_VERSION "1.9.5b15"
|
||||||
|
|||||||
Reference in New Issue
Block a user