aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/spi_flash/spi_flash.py
diff options
context:
space:
mode:
authorSasquatch <zajc3w@gmail.com>2025-07-27 17:09:11 +0100
committerGitHub <noreply@github.com>2025-07-27 12:09:11 -0400
commit4a567c8d1050d95ea22019545877715b842fa1b3 (patch)
tree0b0898ed6a93360a40f77ec9eeec93d19ab29344 /scripts/spi_flash/spi_flash.py
parent60879fd298fe3b4f3dda63561e6a1c9bdc5ee9af (diff)
downloadkutter-4a567c8d1050d95ea22019545877715b842fa1b3.tar.gz
kutter-4a567c8d1050d95ea22019545877715b842fa1b3.tar.xz
kutter-4a567c8d1050d95ea22019545877715b842fa1b3.zip
spi_flash: FATFS fix missing long filenames support needed by flash-sdcard.sh (#6981)
enable long file support, needed for boards using swspi and long filenames for firmware like mks robin 1.1/1.2 added MKS robin nano 1.2 board with description what and why Signed-off-by: Leszek Zajac <zajc3w@gmail.com>
Diffstat (limited to 'scripts/spi_flash/spi_flash.py')
-rw-r--r--scripts/spi_flash/spi_flash.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/spi_flash/spi_flash.py b/scripts/spi_flash/spi_flash.py
index e45e0b7c..729dd2bb 100644
--- a/scripts/spi_flash/spi_flash.py
+++ b/scripts/spi_flash/spi_flash.py
@@ -380,7 +380,7 @@ class FatFS:
(fdate >> 5) & 0xF, fdate & 0x1F, ((fdate >> 9) & 0x7F) + 1980,
(ftime >> 11) & 0x1F, (ftime >> 5) & 0x3F, ftime & 0x1F)
return {
- 'name': self.ffi_main.string(finfo.name, 13),
+ 'name': self.ffi_main.string(finfo.name, 256),
'size': finfo.size,
'modified': dstr,
'is_dir': bool(finfo.attrs & 0x10),