mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-04 15:10:41 +08:00
Fix fatFS upload thanks @liqijian101
This commit is contained in:
parent
254f128940
commit
972b4dbe33
@ -22,7 +22,7 @@
|
||||
#define _VERSION_ESP3D_H
|
||||
|
||||
//version and sources location
|
||||
#define FW_VERSION "3.0.0.a106"
|
||||
#define FW_VERSION "3.0.0.a107"
|
||||
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
|
||||
|
||||
#endif //_VERSION_ESP3D_H
|
||||
|
@ -257,7 +257,8 @@ void ESP_File::close()
|
||||
//reopen if mode = write
|
||||
//udate size + date
|
||||
if (_iswritemode && !_isdir) {
|
||||
File ftmp = FFat.open(_filename.c_str());
|
||||
String s = _filename[0]=='/'?"":"/" + _filename;
|
||||
File ftmp = FFat.open(s.c_str());
|
||||
if (ftmp) {
|
||||
_size = ftmp.size();
|
||||
_lastwrite = ftmp.getLastWrite();
|
||||
|
Loading…
x
Reference in New Issue
Block a user