Skip to content

Commit

Permalink
Fix CONFIG_LITTLEFS_USE_ONLY_HASH with recent esp-idf
Browse files Browse the repository at this point in the history
Currently, having CONFIG_LITTLEGS_USE_ONLY_HASH set to `y` breaks the
build when using esp-idf >= v4.4.2.
  • Loading branch information
agarof authored and BrianPugh committed Feb 15, 2023
1 parent f2a949f commit dbfd5e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/esp_littlefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1771,7 +1771,11 @@ static int vfs_littlefs_ftruncate(void *ctx, int fd, off_t size)
}
else
{
#ifndef CONFIG_LITTLEFS_USE_ONLY_HASH
ESP_LOGV( TAG, "Truncated file %s to %u bytes", file->path, (unsigned int) size );
#else
ESP_LOGV(TAG, "Truncated FD %d to %u bytes", fd, (unsigned int) size );
#endif
}
return res;

Expand Down

0 comments on commit dbfd5e6

Please sign in to comment.