From cafd52c4036f18140cc0bada7ef7c052a42dc75e Mon Sep 17 00:00:00 2001 From: Luc <8822552+luc-github@users.noreply.github.com> Date: Wed, 23 Sep 2020 21:07:16 +0200 Subject: [PATCH] Add sanity check per Aneantisor suggestion --- esp3d/src/modules/filesystem/sd/sdio_esp32.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/esp3d/src/modules/filesystem/sd/sdio_esp32.cpp b/esp3d/src/modules/filesystem/sd/sdio_esp32.cpp index 1fecd741..87ba73cb 100644 --- a/esp3d/src/modules/filesystem/sd/sdio_esp32.cpp +++ b/esp3d/src/modules/filesystem/sd/sdio_esp32.cpp @@ -31,6 +31,10 @@ extern File tSDFile_handle[ESP_MAX_SD_OPENHANDLE]; #define SDMMC_FORCE_BEGIN +#ifndef SD_ONE_BIT_MODE +#define SD_ONE_BIT_MODE false +#endif //SD_ONE_BIT_MODE + uint8_t ESP_SD::getState(bool refresh) { static bool lastinitok = false;