Skip to content

Commit

Permalink
Replace hexencode with format_hex_pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
DomiStyle committed May 21, 2022
1 parent 3821e9f commit ea791c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/panasonic_ac/esppac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ void PanasonicAC::set_current_power_consumption_sensor(sensor::Sensor *current_p

void PanasonicAC::log_packet(std::vector<uint8_t> 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());
}
}

Expand Down

0 comments on commit ea791c9

Please sign in to comment.