mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
removed comment
This commit is contained in:
@@ -1016,13 +1016,14 @@ void EMSESP::process_version(std::shared_ptr<const Telegram> telegram) {
|
|||||||
// some devices store the protocol type (HT3, Buderus) in the last byte
|
// some devices store the protocol type (HT3, Buderus) in the last byte
|
||||||
uint8_t brand;
|
uint8_t brand;
|
||||||
if (telegram->message_length >= 10) {
|
if (telegram->message_length >= 10) {
|
||||||
brand = EMSdevice::decode_brand(telegram->message_data[9]); // TODO should be offset + 9?
|
brand = EMSdevice::decode_brand(telegram->message_data[9]);
|
||||||
} else {
|
} else {
|
||||||
brand = EMSdevice::Brand::NO_BRAND; // unknown
|
brand = EMSdevice::Brand::NO_BRAND; // unknown
|
||||||
}
|
}
|
||||||
|
|
||||||
// add it - will be overwritten if device already exists
|
// add it - will be overwritten if device already exists
|
||||||
(void)add_device(device_id, product_id, version, brand);
|
(void)add_device(device_id, product_id, version, brand);
|
||||||
|
|
||||||
// request the deviceName from telegram 0x01
|
// request the deviceName from telegram 0x01
|
||||||
send_read_request(EMSdevice::EMS_TYPE_NAME, device_id, 27);
|
send_read_request(EMSdevice::EMS_TYPE_NAME, device_id, 27);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user