From 989b8b620c6289814f89e9bffa9e38319ece16ad Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Thu, 9 Nov 2023 16:47:49 +0100 Subject: [PATCH] TFTP Add virtual files to the file list --- project/Core/Src/tftp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/project/Core/Src/tftp.c b/project/Core/Src/tftp.c index 532a5d6..1cc52dd 100644 --- a/project/Core/Src/tftp.c +++ b/project/Core/Src/tftp.c @@ -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;