mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 16:59:50 +03:00
set HMC310 to BC400 compatible
This commit is contained in:
@@ -1314,6 +1314,10 @@ bool EMSESP::add_device(const uint8_t device_id, const uint8_t product_id, const
|
|||||||
flags = DeviceFlags::EMS_DEVICE_FLAG_CR120;
|
flags = DeviceFlags::EMS_DEVICE_FLAG_CR120;
|
||||||
default_name = "CR120";
|
default_name = "CR120";
|
||||||
}
|
}
|
||||||
|
if (product_id == 158 && strncmp(version,"73",2) == 0) {
|
||||||
|
flags = DeviceFlags::EMS_DEVICE_FLAG_BC400;
|
||||||
|
default_name = "HMC310";
|
||||||
|
}
|
||||||
|
|
||||||
// empty reply to version, read a generic device from database
|
// empty reply to version, read a generic device from database
|
||||||
if (product_id == 0) {
|
if (product_id == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user