Added support for MP100 pool mixer (telegram 05BA), added brand IVT, added some parameters to telegram 0x48D & 0x48F

This commit is contained in:
sunbuzz
2021-09-01 22:06:50 +02:00
parent a9a015cb5b
commit 834c7cb87f
9 changed files with 175 additions and 54 deletions

View File

@@ -930,7 +930,7 @@ bool EMSESP::add_device(const uint8_t device_id, const uint8_t product_id, std::
}
// find the name and flags in our database
for (const auto & device : device_library_) {
if (device.product_id == product_id) {
if (device.product_id == product_id && device.device_type == emsdevice->device_type()) {
emsdevice->name(std::move(uuid::read_flash_string(device.name)));
emsdevice->add_flags(device.flags);
}