Add sanity check per Aneantisor suggestion

This commit is contained in:
Luc 2020-09-23 21:07:16 +02:00
parent b827984813
commit cafd52c403

View File

@ -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;