This commit is contained in:
2026-02-26 15:44:43 +01:00
parent b8b3e6ea44
commit 5934bba4af
7 changed files with 159 additions and 16 deletions

View File

@@ -66,7 +66,7 @@ int send_info()
{
char info[112];
struct fs_statvfs stat;
int rc = fs_statvfs("/lfs", &stat);
int rc = fs_pm_statvfs("/lfs", &stat);
if (rc)
{
LOG_ERR("Failed to get filesystem stats: %d", rc);
@@ -87,7 +87,7 @@ int put_binary_file(const char *filename, ssize_t filesize, uint32_t expected_cr
size_t accumulated = 0;
fs_file_t_init(&file);
fs_unlink(filename);
fs_pm_unlink(filename);
LOG_DBG("Opening file '%s' for writing (expected size: %zd bytes, expected CRC32: 0x%08x)", filename, filesize, expected_crc32);
rc = fs_pm_open(&file, filename, FS_O_CREATE | FS_O_WRITE);
if (rc < 0)