File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
components/storage/blockdevice/COMPONENT_SPIF
features/storage/filesystem Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -936,7 +936,10 @@ int SPIFBlockDevice::_reset_flash_mem()
936
936
tr_error (" Sending RST failed" );
937
937
status = -1 ;
938
938
}
939
- _is_mem_ready ();
939
+ if (false == _is_mem_ready ()) {
940
+ tr_error (" Device not ready, write failed" );
941
+ status = -1 ;
942
+ }
940
943
}
941
944
}
942
945
Original file line number Diff line number Diff line change @@ -2719,7 +2719,7 @@ void get_fileinfo (
2719
2719
if (wc == 0 ) { di = 0 ; break ; } /* Buffer overflow? */
2720
2720
di += wc;
2721
2721
#else /* ANSI/OEM output */
2722
- if (di <= FF_SFN_BUF) fno->altname [di++] = (TCHAR)wc; /* Store it without any conversion */
2722
+ if (di < FF_SFN_BUF) fno->altname [di++] = (TCHAR)wc; /* Store it without any conversion */
2723
2723
#endif
2724
2724
}
2725
2725
fno->altname [di] = 0 ; /* Terminate the SFN (null string means SFN is invalid) */
Original file line number Diff line number Diff line change @@ -2481,7 +2481,7 @@ int lfs_deorphan(lfs_t *lfs) {
2481
2481
}
2482
2482
2483
2483
lfs_dir_t pdir = {.d .size = 0x80000000 };
2484
- lfs_dir_t cwd = {.d .tail [ 0 ] = 0 , . d . tail [ 1 ] = 1 };
2484
+ lfs_dir_t cwd = {.d .tail = { 0 , 1 } };
2485
2485
2486
2486
// iterate over all directory directory entries
2487
2487
while (!lfs_pairisnull (cwd .d .tail )) {
You can’t perform that action at this time.
0 commit comments