Skip to content

Commit 34eb89b

Browse files
committed
fix extension finding for tlfite modellist
1 parent b725d24 commit 34eb89b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

.DS_Store

0 Bytes
Binary file not shown.

code/components/jomjol_fileserver_ota/server_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ esp_err_t get_tflite_file_handler(httpd_req_t *req)
9696
printf("File: %s\t", _filename.c_str());
9797

9898
_fileext = _filename;
99-
pos = _fileext.find(".");
99+
pos = _fileext.find_last_of(".");
100100
if (pos != std::string::npos)
101101
_fileext = _fileext.erase(0, pos + 1);
102102

0 commit comments

Comments
 (0)