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>
This commit is contained in:
Sasquatch
2025-07-27 17:09:11 +01:00
committed by GitHub
parent 60879fd298
commit 4a567c8d10
5 changed files with 17 additions and 4 deletions

View File

@@ -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),