Commit 6af0691b authored by 时昊's avatar 时昊

feat:增加软件版本号ID12发送给底板

parent 178678a4
...@@ -324,10 +324,11 @@ void Uart_Send_Id10_Pro(void )//esp32发送启动完成给底板 ...@@ -324,10 +324,11 @@ void Uart_Send_Id10_Pro(void )//esp32发送启动完成给底板
void Uart_Send_Id12_Pro(void )//收到底板回复的0x20后,发送蓝牙类型 ID12[0]是判断蓝牙是否连接 不等于0是连接 void Uart_Send_Id12_Pro(void )//收到底板回复的0x20后,发送蓝牙类型 ID12[0]是判断蓝牙是否连接 不等于0是连接
{ {
uint8_t ID12[3] = {0}; uint8_t ID12[2] = {0};
ID12[0] |= (uint8_t)(BT_User.BT_Sts << 4);//经典 ID12[0] |= (uint8_t)(BT_User.BT_Sts << 4);//经典
ID12[0] |= Ble_User.Ble_Sts;//ble ID12[0] |= Ble_User.Ble_Sts;//ble
Protocol_Send(0x12, ID12, 3); ID12[1] = 100;//esp32软件版本号
Protocol_Send(0x12, ID12, 2);
} }
// 函数定义 // 函数定义
......
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