From 0bfdaf0961fe2cbb57c2575f617ede860f078d72 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Mon, 22 Apr 2024 21:22:00 +0200 Subject: [PATCH] fix build --- esphome/components/logger/logger.cpp | 2 ++ requirements.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/esphome/components/logger/logger.cpp b/esphome/components/logger/logger.cpp index de14ecf5ed..c09575464d 100644 --- a/esphome/components/logger/logger.cpp +++ b/esphome/components/logger/logger.cpp @@ -162,6 +162,7 @@ Logger::Logger(uint32_t baud_rate, size_t tx_buffer_size) : baud_rate_(baud_rate } #ifdef USE_LOGGER_USB_CDC +#ifndef USE_ZEPHYR void Logger::loop() { #ifdef USE_ARDUINO if (this->uart_ != UART_SELECTION_USB_CDC) { @@ -178,6 +179,7 @@ void Logger::loop() { #endif } #endif +#endif void Logger::set_baud_rate(uint32_t baud_rate) { this->baud_rate_ = baud_rate; } void Logger::set_log_level(const std::string &tag, int log_level) { diff --git a/requirements.txt b/requirements.txt index 7c835e3a96..824ce0c840 100644 --- a/requirements.txt +++ b/requirements.txt @@ -32,7 +32,7 @@ argcomplete>=2.0.0 git+https://github.com/tomaszduda23/smp/@f9b85266485062f6a466989e8f59b913cc83b08b git+https://github.com/tomaszduda23/smpclient/@d25c8035ae2858fd41a106058297b619d58fbcb5 bleak==0.21.1 -pydantic==2.16.2 +pydantic==2.7.0 cbor2==5.6.1 crcmod==1.7 # pretty print by logging?