From c71af3923091094649f88f0baceffa6e708dbff6 Mon Sep 17 00:00:00 2001 From: ElVit <54866762+ElVit@users.noreply.github.com> Date: Mon, 24 Nov 2025 22:43:20 +0100 Subject: [PATCH] Update helpers.h --- components/panasonic_heatpump/helpers.h | 31 +++++++++++-------------- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/components/panasonic_heatpump/helpers.h b/components/panasonic_heatpump/helpers.h index fc868ab..4174423 100644 --- a/components/panasonic_heatpump/helpers.h +++ b/components/panasonic_heatpump/helpers.h @@ -9,22 +9,17 @@ #define UART_LOG_CHUNK_SIZE 120 #endif +namespace esphome { +namespace panasonic_heatpump { +enum UartLogDirection : uint8_t { + UART_LOG_RX, + UART_LOG_TX, +}; -namespace esphome -{ - namespace panasonic_heatpump - { - enum UartLogDirection : uint8_t - { - UART_LOG_RX, - UART_LOG_TX, - }; - - class PanasonicHelpers - { - public: - static void log_uart_hex(UartLogDirection direction, const std::vector& data, const char separator); - static void log_uart_hex(UartLogDirection direction, const uint8_t* data, const size_t length, const char separator); - }; - } -} \ No newline at end of file +class PanasonicHelpers { + public: + static void log_uart_hex(UartLogDirection direction, const std::vector& data, const char separator); + static void log_uart_hex(UartLogDirection direction, const uint8_t* data, const size_t length, const char separator); +}; +} // namespace panasonic_heatpump +} // namespace esphome