Skip to content

Commit 972b4db

Browse files
committed
Fix fatFS upload thanks @liqijian101
1 parent 254f128 commit 972b4db

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

esp3d/src/include/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define _VERSION_ESP3D_H
2323

2424
//version and sources location
25-
#define FW_VERSION "3.0.0.a106"
25+
#define FW_VERSION "3.0.0.a107"
2626
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
2727

2828
#endif //_VERSION_ESP3D_H

esp3d/src/modules/filesystem/flash/fat_esp32_filesystem.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ void ESP_File::close()
257257
//reopen if mode = write
258258
//udate size + date
259259
if (_iswritemode && !_isdir) {
260-
File ftmp = FFat.open(_filename.c_str());
260+
String s = _filename[0]=='/'?"":"/" + _filename;
261+
File ftmp = FFat.open(s.c_str());
261262
if (ftmp) {
262263
_size = ftmp.size();
263264
_lastwrite = ftmp.getLastWrite();

0 commit comments

Comments
 (0)