diff --git a/esphome/components/logger/logger_zephyr.cpp b/esphome/components/logger/logger_zephyr.cpp index 2810aa0b52..523d23083f 100644 --- a/esphome/components/logger/logger_zephyr.cpp +++ b/esphome/components/logger/logger_zephyr.cpp @@ -14,7 +14,7 @@ namespace logger { static const char *const TAG = "logger"; void Logger::loop() { - if (this->uart_ != UART_SELECTION_USB_CDC || nullptr == uart_dev_) { + if (this->uart_ != UART_SELECTION_USB_CDC || nullptr == this->uart_dev_) { return; } static bool opened = false;