Commit 50b6561d authored by 薛晓虎's avatar 薛晓虎

fix: 取消串口id 0x03长度判断;添加经典蓝牙连接状态外发

parent 2a7a6009
......@@ -230,7 +230,7 @@ static void Protocol_UartHandle(const Protocol_Data_t *pData)
if(Prot_User.State >= Prot_Start)
{
if(pData->DataLen == 33)
// if(pData->DataLen == 33)
{
if(BT_User.HF_Ctrl != pData->Data[0])
{
......@@ -314,8 +314,9 @@ void Uart_Send_Id10_Pro(void )
void Uart_Send_Id12_Pro(void )
{
uint8_t ID12[1];
ID12[0] = Ble_User.Ble_Sts;
uint8_t ID12[1] = {0};
ID12[0] |= (uint8_t)(BT_User.BT_Sts << 4);
ID12[0] |= Ble_User.Ble_Sts;
Protocol_Send(0x12, ID12, 1);
}
......
......@@ -79,7 +79,7 @@ static void Sys_Run_Tasks(void *arg)
{
testcnt = 0;
printf("BT_User.BT_Sts = %d\r\n", BT_User.BT_Sts);
// printf("BT_User.BT_Sts = %d\r\n", BT_User.BT_Sts);
// printf("Ble_User.Navi_Updat = %d\r\n", Ble_User.Navi_Updat);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment