fix extension finding for tlfite modellist

This commit is contained in:
Frank Haverland
2022-07-18 19:18:09 +02:00
parent b725d242d3
commit 34eb89b1b6
2 changed files with 1 additions and 1 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -96,7 +96,7 @@ esp_err_t get_tflite_file_handler(httpd_req_t *req)
printf("File: %s\t", _filename.c_str());
_fileext = _filename;
pos = _fileext.find(".");
pos = _fileext.find_last_of(".");
if (pos != std::string::npos)
_fileext = _fileext.erase(0, pos + 1);