mirror of
https://github.com/esphome/esphome.git
synced 2026-09-20 11:38:48 +00:00
Update esphome/components/remote_base/aeha_protocol.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
parent
3926d3a09d
commit
5f57c6bb82
@@ -85,7 +85,7 @@ optional<AEHAData> AEHAProtocol::decode(RemoteReceiveData src) {
|
||||
std::string AEHAProtocol::format_data_(const std::vector<uint8_t> &data) {
|
||||
std::string out;
|
||||
for (uint8_t byte : data) {
|
||||
char buf[8]; // "0x%02X," = 6 chars + null + margin
|
||||
char buf[8]; // "0x%02X," = 5 chars + null + margin
|
||||
snprintf(buf, sizeof(buf), "0x%02X,", byte);
|
||||
out += buf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user