Browse Source

add "\n" to cat

褚仕成 2 years ago
parent
commit
4246275e6e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      components/dfs/src/dfs_file.c

+ 1 - 0
components/dfs/src/dfs_file.c

@@ -857,6 +857,7 @@ void cat(const char *filename)
             rt_device_write(out_device, 0, (void *)buffer, sizeof(buffer));
         }
     } while (length > 0);
+    rt_kprintf("\n");
 
     dfs_file_close(&fd);
 }