From 9b3ca3095972d164ce32a19f6d8e8f783675e4a3 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 31 Jan 2020 22:44:35 +0100 Subject: [PATCH] fix non-boiler check #317 --- src/ems.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ems.cpp b/src/ems.cpp index c47176c33..da76ef4ec 100644 --- a/src/ems.cpp +++ b/src/ems.cpp @@ -1831,12 +1831,12 @@ void _process_Version(_EMS_RxTelegram * EMS_RxTelegram) { i++; } - // not a boiler + // not a boiler, continue... i = 0; uint8_t found_index = 0; bool typeFound = false; while (i < _EMS_Devices_max) { - if (EMS_Devices[i].product_id == product_id) { + if ((EMS_Devices[i].product_id == product_id) && (EMS_Devices[i].type != EMS_DEVICE_TYPE_BOILER)) { // we have a matching product id typeFound = true; found_index = i;