mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
fix non-boiler check #317
This commit is contained in:
@@ -1831,12 +1831,12 @@ void _process_Version(_EMS_RxTelegram * EMS_RxTelegram) {
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// not a boiler
|
// not a boiler, continue...
|
||||||
i = 0;
|
i = 0;
|
||||||
uint8_t found_index = 0;
|
uint8_t found_index = 0;
|
||||||
bool typeFound = false;
|
bool typeFound = false;
|
||||||
while (i < _EMS_Devices_max) {
|
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
|
// we have a matching product id
|
||||||
typeFound = true;
|
typeFound = true;
|
||||||
found_index = i;
|
found_index = i;
|
||||||
|
|||||||
Reference in New Issue
Block a user