mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 04:26:58 +03:00
fix extension finding for tlfite modellist
This commit is contained in:
@@ -96,7 +96,7 @@ esp_err_t get_tflite_file_handler(httpd_req_t *req)
|
|||||||
printf("File: %s\t", _filename.c_str());
|
printf("File: %s\t", _filename.c_str());
|
||||||
|
|
||||||
_fileext = _filename;
|
_fileext = _filename;
|
||||||
pos = _fileext.find(".");
|
pos = _fileext.find_last_of(".");
|
||||||
if (pos != std::string::npos)
|
if (pos != std::string::npos)
|
||||||
_fileext = _fileext.erase(0, pos + 1);
|
_fileext = _fileext.erase(0, pos + 1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user