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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user