Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1a209a0

Browse filesBrowse files
P-R-O-C-H-Yme-no-dev
authored andcommitted
fix attach pin for S3
1 parent d0635d0 commit 1a209a0
Copy full SHA for 1a209a0

File tree

1 file changed

+4
-4
lines changed
Filter options

1 file changed

+4
-4
lines changed

‎cores/esp32/esp32-hal-spi.c

Copy file name to clipboardExpand all lines: cores/esp32/esp32-hal-spi.c
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ void spiAttachMOSI(spi_t * spi, int8_t mosi)
240240
return;
241241
}
242242
if(mosi < 0) {
243-
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
243+
#if CONFIG_IDF_TARGET_ESP32S2
244244
if(spi->num == FSPI) {
245245
mosi = 35;
246246
} else {
@@ -277,7 +277,7 @@ void spiDetachSCK(spi_t * spi, int8_t sck)
277277
return;
278278
}
279279
if(sck < 0) {
280-
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
280+
#if CONFIG_IDF_TARGET_ESP32S2
281281
if(spi->num == FSPI) {
282282
sck = 36;
283283
} else {
@@ -314,7 +314,7 @@ void spiDetachMISO(spi_t * spi, int8_t miso)
314314
return;
315315
}
316316
if(miso < 0) {
317-
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
317+
#if CONFIG_IDF_TARGET_ESP32S2
318318
if(spi->num == FSPI) {
319319
miso = 37;
320320
} else {
@@ -351,7 +351,7 @@ void spiDetachMOSI(spi_t * spi, int8_t mosi)
351351
return;
352352
}
353353
if(mosi < 0) {
354-
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
354+
#if CONFIG_IDF_TARGET_ESP32S2
355355
if(spi->num == FSPI) {
356356
mosi = 35;
357357
} else {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.