This commit is contained in:
Yuri Trikoz
2020-06-25 07:08:09 +03:00
parent b50e1c9791
commit 5ed1c23c62
3 changed files with 8 additions and 6 deletions

View File

@@ -118,7 +118,8 @@ const String readFile(const String& filename, size_t max_size) {
}
const String getFileSize(const String filename) {
auto file = LittleFS.open(filepath(filename), "r");
String filepath(filename);
auto file = LittleFS.open(filepath, "r");
if (!file) {
return "failed";
}