Update fatfs_through_vfs_sample.c

此处返回值是句柄fd,不是ret,所以删除无效的ret值打印
This commit is contained in:
David Lin
2020-10-29 16:56:33 +08:00
committed by GitHub
parent 6de2e8b5e1
commit e98698757a

View File

@@ -43,7 +43,7 @@ void application_entry(void *arg)
fd = tos_vfs_open("/fs/fatfs_sd/test_file.txt", VFS_OFLAG_EXISTING | VFS_OFLAG_READ);
if (fd < 0) {
printf("open file error: %d\n", ret);
printf("open file error!\n");
}
memset(buf, 0, sizeof(buf));