mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-11 01:10:20 +01:00
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:
@@ -199,7 +199,9 @@ bool PinMappingClass::init(const String& deviceMapping)
|
|||||||
// Initialize SpiManager
|
// Initialize SpiManager
|
||||||
SpiManagerInst.register_bus(SPI2_HOST);
|
SpiManagerInst.register_bus(SPI2_HOST);
|
||||||
#if SOC_SPI_PERIPH_NUM > 2
|
#if SOC_SPI_PERIPH_NUM > 2
|
||||||
|
#ifndef CONFIG_IDF_TARGET_ESP32S2
|
||||||
SpiManagerInst.register_bus(SPI3_HOST);
|
SpiManagerInst.register_bus(SPI3_HOST);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
File f = LittleFS.open(PINMAPPING_FILENAME, "r", false);
|
File f = LittleFS.open(PINMAPPING_FILENAME, "r", false);
|
||||||
|
|||||||
Reference in New Issue
Block a user