mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
[remote_base] NEC, fix get_protocol_type_and_fields
This commit is contained in:
parent
7de47fabfe
commit
12af2da6b3
@ -171,7 +171,7 @@ std::string NECProtocol::get_protocol_type_and_fields(const NECData &data) const
|
|||||||
debug_message += "Unknown";
|
debug_message += "Unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.type == NECCodeType::FRAME_WITH_REPEATS) {
|
if (data.type != NECCodeType::REPEATS_ONLY) {
|
||||||
debug_message += ": address=0x";
|
debug_message += ": address=0x";
|
||||||
if (this->is_extended(data)) {
|
if (this->is_extended(data)) {
|
||||||
debug_message += str_sprintf("%04X", data.address);
|
debug_message += str_sprintf("%04X", data.address);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user