Fix: Disable SPI3_HOST with ESP32-S2 for SpiManager

SPI3_HOST seems not to work in combination with SpiManager when using an ESP32-S2. Therefor don't register this SPI channel
This commit is contained in:
Thomas Basler
2025-02-14 22:56:59 +01:00
parent 5d43ec4fe3
commit 8e90399edd

View File

@@ -199,7 +199,9 @@ bool PinMappingClass::init(const String& deviceMapping)
// Initialize SpiManager
SpiManagerInst.register_bus(SPI2_HOST);
#if SOC_SPI_PERIPH_NUM > 2
#ifndef CONFIG_IDF_TARGET_ESP32S2
SpiManagerInst.register_bus(SPI3_HOST);
#endif
#endif
File f = LittleFS.open(PINMAPPING_FILENAME, "r", false);