Update esp_globalFS.cpp

Fix compilation error if no SD
This commit is contained in:
Luc 2020-03-05 11:32:18 +01:00
parent 719843525f
commit 542d791ec3

View File

@ -527,9 +527,11 @@ time_t ESP_GBFile::getLastWrite()
if (_type == FS_FLASH) {
return _flashFile.getLastWrite();
}
#ifdef SD_DEVICE
if (_type == FS_SD) {
return _sdFile.getLastWrite();
}
#endif //SD_DEVICE
return 0;
}