Skip to content

Commit 74b935c

Browse files
committed
removed comment
1 parent f6964e3 commit 74b935c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/emsesp.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1016,13 +1016,14 @@ void EMSESP::process_version(std::shared_ptr<const Telegram> telegram) {
10161016
// some devices store the protocol type (HT3, Buderus) in the last byte
10171017
uint8_t brand;
10181018
if (telegram->message_length >= 10) {
1019-
brand = EMSdevice::decode_brand(telegram->message_data[9]); // TODO should be offset + 9?
1019+
brand = EMSdevice::decode_brand(telegram->message_data[9]);
10201020
} else {
10211021
brand = EMSdevice::Brand::NO_BRAND; // unknown
10221022
}
10231023

10241024
// add it - will be overwritten if device already exists
10251025
(void)add_device(device_id, product_id, version, brand);
1026+
10261027
// request the deviceName from telegram 0x01
10271028
send_read_request(EMSdevice::EMS_TYPE_NAME, device_id, 27);
10281029
}

0 commit comments

Comments
 (0)