Skip to content

Commit 284e982

Browse files
committed
Update esp3dlib_config.h
New Marlin SS name
1 parent 6156954 commit 284e982

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/esp3dlib_config.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,15 @@
208208
#define ESP_SD_CS_PIN SDSS
209209
#endif // SDSS
210210

211+
// Keep compatibility with Marlin 2.0.9 and older
212+
#if defined(SD_SS_PIN) && (SD_SS_PIN >= 0)
213+
#if defined(ESP_SD_CS_PIN)
214+
#undef ESP_SD_CS_PIN
215+
#endif // ESP_SD_CS_PIN
216+
217+
#define ESP_SD_CS_PIN SD_SS_PIN
218+
#endif // SDSS
219+
211220
#if defined(SD_SCK_PIN) && (SD_SCK_PIN >= 0)
212221
#define ESP_SD_SCK_PIN SD_SCK_PIN
213222
#endif // SD_SCK_PIN

0 commit comments

Comments
 (0)