Update helpers.h
This commit is contained in:
parent
02326d1015
commit
c71af39230
|
|
@ -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<uint8_t>& data, const char separator);
|
||||
static void log_uart_hex(UartLogDirection direction, const uint8_t* data, const size_t length, const char separator);
|
||||
};
|
||||
}
|
||||
}
|
||||
class PanasonicHelpers {
|
||||
public:
|
||||
static void log_uart_hex(UartLogDirection direction, const std::vector<uint8_t>& 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue