各类信息只显示一次,错误不显示
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user