关闭了485上的 LOG

This commit is contained in:
edisondeng
2026-05-10 09:24:32 +08:00
parent 485fb32a72
commit aed62f7bb4
4 changed files with 4334 additions and 4295 deletions

View File

@ -144,6 +144,6 @@ void DebugLog_Output(log_level_t level, const char *module, const char *fmt, ...
if (len > 0) { if (len > 0) {
UART2_Print_Send((const uint8_t *)buffer, len); UART2_Print_Send((const uint8_t *)buffer, len);
MultiUART_Send(PORT_RS485, (const uint8_t *)buffer, len); /* 增加:同时将日志发给 RS485 */ // MultiUART_Send(PORT_RS485, (const uint8_t *)buffer, len); /* 增加:同时将日志发给 RS485 */
} }
} }

View File

@ -462,7 +462,7 @@ int fputc(int ch, FILE *f)
{ {
(void)f; (void)f;
UART2_Print_Send((uint8_t *)&ch, 1); UART2_Print_Send((uint8_t *)&ch, 1);
MultiUART_Send(PORT_RS485, (uint8_t *)&ch, 1); /* 增加:同时发给 UART3 */ // MultiUART_Send(PORT_RS485, (uint8_t *)&ch, 1); /* 增加:同时发给 UART3 */
return ch; return ch;
} }
#endif #endif
@ -471,7 +471,7 @@ int fputc(int ch, FILE *f)
int __io_putchar(int ch) int __io_putchar(int ch)
{ {
UART2_Print_Send((uint8_t *)&ch, 1); UART2_Print_Send((uint8_t *)&ch, 1);
MultiUART_Send(PORT_RS485, (uint8_t *)&ch, 1); /* 增加:同时发给 UART3 */ // MultiUART_Send(PORT_RS485, (uint8_t *)&ch, 1); /* 增加:同时发给 UART3 */
return ch; return ch;
} }
@ -479,7 +479,7 @@ int _write(int file, char *ptr, int len)
{ {
(void)file; (void)file;
UART2_Print_Send((uint8_t *)ptr, len); UART2_Print_Send((uint8_t *)ptr, len);
MultiUART_Send(PORT_RS485, (uint8_t *)ptr, len); /* 增加:同时发给 UART3 */ // MultiUART_Send(PORT_RS485, (uint8_t *)ptr, len); /* 增加:同时发给 UART3 */
return len; return len;
} }
#endif #endif

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long