We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6156954 commit 284e982Copy full SHA for 284e982
src/esp3dlib_config.h
@@ -208,6 +208,15 @@
208
#define ESP_SD_CS_PIN SDSS
209
#endif // SDSS
210
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
220
#if defined(SD_SCK_PIN) && (SD_SCK_PIN >= 0)
221
#define ESP_SD_SCK_PIN SD_SCK_PIN
222
#endif // SD_SCK_PIN
0 commit comments