add "\n" to cat

This commit is contained in:
褚仕成 2022-12-15 19:36:05 +08:00 committed by Man, Jianting (Meco)
parent ee632c21a8
commit 4246275e6e

View File

@ -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);
}