Commit 0d6fd094 authored by 张金硕's avatar 张金硕

🐞 fix:将蓝牙开关命令改回触发一次

parent 36937bd8
...@@ -63,16 +63,18 @@ void BlueToothService(void) ...@@ -63,16 +63,18 @@ void BlueToothService(void)
{ {
if(GetBlueToothVaild == 1) if(GetBlueToothVaild == 1)
{ {
if(SetBluetoothCloseCount < 30) // if(SetBluetoothCloseCount < 30)
{ // {
// SetBluetoothTurnXX(0);
// }
// else
// {
// GetBlueToothVaild = 0;
// SetBluetoothCloseCount = 0;
// }
// SetBluetoothCloseCount++;
SetBluetoothTurnXX(0); SetBluetoothTurnXX(0);
}
else
{
GetBlueToothVaild = 0; GetBlueToothVaild = 0;
SetBluetoothCloseCount = 0;
}
SetBluetoothCloseCount++;
} }
} }
......
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