From dce9d59dfe6a7e9a3f1914234a02a01c9bdf021e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Klitzing?= Date: Tue, 18 May 2021 09:16:51 +0200 Subject: [PATCH] Do not use Serial2 for ESP32C3, too (#1798) src/esphome/components/logger/logger.cpp: In member function 'void esphome::logger::Logger::pre_setup()': src/esphome/components/logger/logger.cpp:142:29: error: 'Serial2' was not declared in this scope this->hw_serial_ = &Serial2; --- esphome/components/logger/logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/logger/logger.cpp b/esphome/components/logger/logger.cpp index 8e7bd2ee49..9c65f494f0 100644 --- a/esphome/components/logger/logger.cpp +++ b/esphome/components/logger/logger.cpp @@ -136,7 +136,7 @@ void Logger::pre_setup() { break; #ifdef ARDUINO_ARCH_ESP32 case UART_SELECTION_UART2: -#if !CONFIG_IDF_TARGET_ESP32S2 +#if !CONFIG_IDF_TARGET_ESP32S2 && !CONFIG_IDF_TARGET_ESP32C3 // FIXME: Validate in config that UART2 can't be set for ESP32-S2 (only has // UART0-UART1) this->hw_serial_ = &Serial2;