各类信息只显示一次,错误不显示

This commit is contained in:
wantong
2024-01-31 15:52:34 +08:00
parent c5b2a4e98b
commit 1a6dcfe14e
18 changed files with 4822 additions and 4764 deletions

View File

@ -9,7 +9,7 @@
#include "cJSON_Test.h"
#include "SerialDataProcess.h"
extern bool Printf_Flag ;
void SerialDataProcess()
{
uint8_t len;
@ -22,6 +22,9 @@ void SerialDataProcess()
cjson(g_usart_rx_buf);
g_usart_rx_sta = 0;
memset(g_usart_rx_buf, 0, sizeof(g_usart_rx_buf));
}else
{
Printf_Flag = false;
}