mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-31 11:09:10 +03:00
don't update products with valid product-id
This commit is contained in:
@@ -1164,7 +1164,7 @@ bool EMSESP::add_device(const uint8_t device_id, const uint8_t product_id, const
|
|||||||
// first check to see if we already have it, if so update the record
|
// first check to see if we already have it, if so update the record
|
||||||
for (const auto & emsdevice : emsdevices) {
|
for (const auto & emsdevice : emsdevices) {
|
||||||
if (emsdevice && emsdevice->is_device_id(device_id)) {
|
if (emsdevice && emsdevice->is_device_id(device_id)) {
|
||||||
if (product_id == 0) { // update only with valid product_id
|
if (product_id == 0 || emsdevice->product_id() != 0) { // update only with valid product_id
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
LOG_DEBUG("Updating details for already active deviceID 0x%02X", device_id);
|
LOG_DEBUG("Updating details for already active deviceID 0x%02X", device_id);
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
#define EMSESP_APP_VERSION "3.7.0-dev.18"
|
#define EMSESP_APP_VERSION "3.7.0-dev.19"
|
||||||
|
|||||||
Reference in New Issue
Block a user