1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-27 13:13:50 +00:00

Fix build issues for idf 4.2 (Support ESP32-S2) (#1433)

Co-authored-by: Otto winter <otto@otto-winter.com>
This commit is contained in:
André Klitzing
2021-05-11 22:31:40 +02:00
committed by GitHub
parent 5c3af1d3f6
commit a546677b08
3 changed files with 63 additions and 3 deletions

View File

@@ -136,7 +136,11 @@ void Logger::pre_setup() {
break;
#ifdef ARDUINO_ARCH_ESP32
case UART_SELECTION_UART2:
#if !CONFIG_IDF_TARGET_ESP32S2
// FIXME: Validate in config that UART2 can't be set for ESP32-S2 (only has
// UART0-UART1)
this->hw_serial_ = &Serial2;
#endif
break;
#endif
}