Skip to content

Commit 7490442

Browse files
Add SDFS::availableForWrite handler
Fixes esp8266#7650
1 parent 9b8ab5d commit 7490442

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

libraries/SDFS/src/SDFS.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class SDFSFileImpl : public FileImpl
279279

280280
int availableForWrite() override
281281
{
282-
return _opened ? _fd->availableForWrite() : 0;
282+
return _opened ? _fd->availableSpaceForWrite() : 0;
283283
}
284284

285285
size_t write(const uint8_t *buf, size_t size) override
@@ -399,8 +399,6 @@ class SDFSFileImpl : public FileImpl
399399
return ftime;
400400
}
401401

402-
403-
404402
protected:
405403
SDFSImpl* _fs;
406404
std::shared_ptr<sdfat::File32> _fd;

0 commit comments

Comments
 (0)