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