From ea791c9217f48fc5d0bcb343f38a2f57d18f4564 Mon Sep 17 00:00:00 2001 From: Dominik Date: Sat, 21 May 2022 10:21:37 +0200 Subject: [PATCH] Replace hexencode with format_hex_pretty --- components/panasonic_ac/esppac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/panasonic_ac/esppac.cpp b/components/panasonic_ac/esppac.cpp index 3458a32..daec166 100644 --- a/components/panasonic_ac/esppac.cpp +++ b/components/panasonic_ac/esppac.cpp @@ -242,9 +242,9 @@ void PanasonicAC::set_current_power_consumption_sensor(sensor::Sensor *current_p void PanasonicAC::log_packet(std::vector data, bool outgoing) { if (outgoing) { - ESP_LOGV(TAG, "TX: %s", hexencode(data).c_str()); + ESP_LOGV(TAG, "TX: %s", format_hex_pretty(data).c_str()); } else { - ESP_LOGV(TAG, "RX: %s", hexencode(data).c_str()); + ESP_LOGV(TAG, "RX: %s", format_hex_pretty(data).c_str()); } }