Commit 1a209a0c authored by Jan Prochazka's avatar Jan Prochazka Committed by me-no-dev

fix attach pin for S3

parent d0635d00
...@@ -240,7 +240,7 @@ void spiAttachMOSI(spi_t * spi, int8_t mosi) ...@@ -240,7 +240,7 @@ void spiAttachMOSI(spi_t * spi, int8_t mosi)
return; return;
} }
if(mosi < 0) { if(mosi < 0) {
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 #if CONFIG_IDF_TARGET_ESP32S2
if(spi->num == FSPI) { if(spi->num == FSPI) {
mosi = 35; mosi = 35;
} else { } else {
...@@ -277,7 +277,7 @@ void spiDetachSCK(spi_t * spi, int8_t sck) ...@@ -277,7 +277,7 @@ void spiDetachSCK(spi_t * spi, int8_t sck)
return; return;
} }
if(sck < 0) { if(sck < 0) {
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 #if CONFIG_IDF_TARGET_ESP32S2
if(spi->num == FSPI) { if(spi->num == FSPI) {
sck = 36; sck = 36;
} else { } else {
...@@ -314,7 +314,7 @@ void spiDetachMISO(spi_t * spi, int8_t miso) ...@@ -314,7 +314,7 @@ void spiDetachMISO(spi_t * spi, int8_t miso)
return; return;
} }
if(miso < 0) { if(miso < 0) {
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 #if CONFIG_IDF_TARGET_ESP32S2
if(spi->num == FSPI) { if(spi->num == FSPI) {
miso = 37; miso = 37;
} else { } else {
...@@ -351,7 +351,7 @@ void spiDetachMOSI(spi_t * spi, int8_t mosi) ...@@ -351,7 +351,7 @@ void spiDetachMOSI(spi_t * spi, int8_t mosi)
return; return;
} }
if(mosi < 0) { if(mosi < 0) {
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 #if CONFIG_IDF_TARGET_ESP32S2
if(spi->num == FSPI) { if(spi->num == FSPI) {
mosi = 35; mosi = 35;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment