#238 - various optimizatons for multiple HCs on RC35s

This commit is contained in:
Paul
2020-01-06 21:51:02 +01:00
parent fff38f9003
commit 62fff2c3bf
2 changed files with 9 additions and 3 deletions

View File

@@ -1194,8 +1194,9 @@ void _process_RC30StatusMessage(_EMS_RxTelegram * EMS_RxTelegram) {
void _process_RC35StatusMessage(_EMS_RxTelegram * EMS_RxTelegram) {
// exit if...
// - 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
if ((EMS_RxTelegram->data[14] == 0x00) || (EMS_RxTelegram->dest != EMS_ID_NONE)) {
// - 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) {
return;
}
@@ -1368,6 +1369,11 @@ int8_t _getHeatingCircuit(_EMS_RxTelegram * EMS_RxTelegram) {
return -1;
}
// ignore telegrams that have no data, or only a single byte
if (EMS_RxTelegram->data_length <= 1) {
return -1;
}
int8_t hc;
switch (EMS_RxTelegram->type) {

View File

@@ -1 +1 @@
#define APP_VERSION "1.9.5b14"
#define APP_VERSION "1.9.5b15"