关闭了485上的 LOG
This commit is contained in:
@ -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 */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
8591
MDK-ARM/JLinkLog.txt
8591
MDK-ARM/JLinkLog.txt
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user