diff --git a/components/panasonic_heatpump/helpers.cpp b/components/panasonic_heatpump/helpers.cpp index a2fdaf8..29e5b71 100644 --- a/components/panasonic_heatpump/helpers.cpp +++ b/components/panasonic_heatpump/helpers.cpp @@ -32,11 +32,7 @@ void PanasonicHelpers::log_uart_hex(UartLogDirection direction, const uint8_t* d delay(10); logStr += byte_array_to_hex_string(data, length, separator); - - for (size_t i = 0; i < logStr.length(); i += UART_LOG_CHUNK_SIZE) { - ESP_LOGI(TAG, "%s %s", msgDir.c_str(), logStr.substr(i, UART_LOG_CHUNK_SIZE).c_str()); - delay(10); - } + ESP_LOGI(TAG, "%s %s", msgDir.c_str(), logStr.c_str()); } std::string PanasonicHelpers::byte_array_to_hex_string(const std::vector& data, const char separator) { diff --git a/components/panasonic_heatpump/helpers.h b/components/panasonic_heatpump/helpers.h index af71f9c..042234a 100644 --- a/components/panasonic_heatpump/helpers.h +++ b/components/panasonic_heatpump/helpers.h @@ -5,10 +5,6 @@ #include #include -#ifndef UART_LOG_CHUNK_SIZE -#define UART_LOG_CHUNK_SIZE 120 -#endif - namespace esphome { namespace panasonic_heatpump { enum UartLogDirection : uint8_t {