优化net部分的代码结构

This commit is contained in:
zhangzheng
2024-01-22 23:17:08 +08:00
parent 9f3f842904
commit 7cbd456d22
17 changed files with 157 additions and 918 deletions

View File

@@ -55,10 +55,12 @@ static msg_tag_t log_write_data(log_t *log, const char *data, int len)
{
for (int i = 0; i < len && data[i]; i++)
{
#if 0
if (data[i] == '\n')
{
putc('\r');
}
#endif
putc(data[i]);
}
return msg_tag_init(0);