Add virtual files to the file list
This commit is contained in:
2023-11-09 16:47:49 +01:00
parent 6b0707cfa2
commit 989b8b620c

View File

@@ -72,6 +72,8 @@ int tftp_read(void* handle, void* buf, int bytes) {
if (file == &virt_file[0]) {
const struct llfs_data_file* root = llfs_root;
snprintf(buf, bytes, "%s\n", virt_file[0].name);
snprintf(buf, bytes, "%s\n", virt_file[1].name);
while(root != NULL) {
snprintf(buf, bytes, "%s\n", root->name);
file = root->next;