summaryrefslogtreecommitdiff
path: root/lib/littlefs/lfs2_util.c
diff options
context:
space:
mode:
authorDaniël van de Giessen <daniel@dvdgiessen.nl>2024-03-27 20:16:13 +0100
committerDamien George <damien@micropython.org>2025-05-07 17:01:16 +1000
commit9287a1e6eaa9c6dc1bb9be27466acd3e639d8113 (patch)
tree97c7613a503fbe0e8d735d6b28fb59c3a6fa8c44 /lib/littlefs/lfs2_util.c
parent80d03b77804da44d56b7b9446520ffafde7e3eea (diff)
lib/littlefs: Update LittleFS to v2.10.2.
Going above the root directory (/../foo) now gives an error. This is an intentional change made by LittleFS. It required a update of the testsuite and is a (minor) compatibility break. Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
Diffstat (limited to 'lib/littlefs/lfs2_util.c')
-rw-r--r--lib/littlefs/lfs2_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/littlefs/lfs2_util.c b/lib/littlefs/lfs2_util.c
index c9850e788..4fe7e5340 100644
--- a/lib/littlefs/lfs2_util.c
+++ b/lib/littlefs/lfs2_util.c
@@ -11,6 +11,8 @@
#ifndef LFS2_CONFIG
+// If user provides their own CRC impl we don't need this
+#ifndef LFS2_CRC
// Software CRC implementation with small lookup table
uint32_t lfs2_crc(uint32_t crc, const void *buffer, size_t size) {
static const uint32_t rtable[16] = {
@@ -29,6 +31,7 @@ uint32_t lfs2_crc(uint32_t crc, const void *buffer, size_t size) {
return crc;
}
+#endif
#endif