TFTP
Add virtual files to the file list
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user