We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a26462 commit 85b6e26Copy full SHA for 85b6e26
libraries/Adafruit_LittleFS/src/Adafruit_LittleFS_File.cpp
@@ -274,7 +274,7 @@ uint32_t File::size (void)
274
275
bool File::truncate (uint32_t pos)
276
{
277
- uint32_t ret=1;
+ int32_t ret=LFS_ERR_ISDIR;
278
_fs->_lockFS();
279
if (!this->_is_dir)
280
@@ -286,7 +286,7 @@ bool File::truncate (uint32_t pos)
286
287
bool File::truncate (void)
288
289
290
uint32_t pos;
291
292
0 commit comments