sync
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user