ufs update

This commit is contained in:
gemu2015 2021-01-05 16:41:41 +01:00
parent 35ad7cfab6
commit 0414ab1bf2
2 changed files with 9 additions and 0 deletions

View File

@ -3723,6 +3723,8 @@ void IMAPData::setFetchUID(const String &fetchUID)
std::string().swap(tmp); std::string().swap(tmp);
} }
extern FS *ufsp;
void IMAPData::setFileStorageType(uint8_t storageType) void IMAPData::setFileStorageType(uint8_t storageType)
{ {
_storageType = storageType; _storageType = storageType;
@ -3736,6 +3738,9 @@ void IMAPData::setFileStorageType(uint8_t storageType)
case MailClientStorageType::FFat: case MailClientStorageType::FFat:
fsp = &FFat; fsp = &FFat;
break; break;
case MailClientStorageType::Univ:
fsp = ufsp;
break;
} }
} }
@ -4766,6 +4771,9 @@ void SMTPData::setFileStorageType(uint8_t storageType)
case MailClientStorageType::FFat: case MailClientStorageType::FFat:
fsp = &FFat; fsp = &FFat;
break; break;
case MailClientStorageType::Univ:
fsp = ufsp;
break;
} }
} }

View File

@ -92,6 +92,7 @@ struct MailClientStorageType
static const uint8_t SPIFFS = 0; static const uint8_t SPIFFS = 0;
static const uint8_t SD = 1; static const uint8_t SD = 1;
static const uint8_t FFat = 2; static const uint8_t FFat = 2;
static const uint8_t Univ = 3;
}; };
static const char ESP32_MAIL_STR_1[] PROGMEM = "Content-Type: multipart/mixed; boundary=\""; static const char ESP32_MAIL_STR_1[] PROGMEM = "Content-Type: multipart/mixed; boundary=\"";