1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

[remote_base] NEC, fix get_protocol_type_and_fields

This commit is contained in:
Djordje 2025-02-22 00:44:53 +01:00
parent 7de47fabfe
commit 12af2da6b3

View File

@ -171,7 +171,7 @@ std::string NECProtocol::get_protocol_type_and_fields(const NECData &data) const
debug_message += "Unknown";
}
if (data.type == NECCodeType::FRAME_WITH_REPEATS) {
if (data.type != NECCodeType::REPEATS_ONLY) {
debug_message += ": address=0x";
if (this->is_extended(data)) {
debug_message += str_sprintf("%04X", data.address);