Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
时昊
haoJin750TFT
Commits
72f99ad8
Commit
72f99ad8
authored
Sep 14, 2024
by
张金硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:修改蓝牙关闭和igoff时可以连接的问题
parent
53304d13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
80 deletions
+78
-80
BlueTooth.c
Firmware/Source/Application/BlueTooth.c
+78
-80
No files found.
Firmware/Source/Application/BlueTooth.c
View file @
72f99ad8
...
@@ -13,6 +13,7 @@ _QRCODE_RECT QRCode_Rect;
...
@@ -13,6 +13,7 @@ _QRCODE_RECT QRCode_Rect;
const
uint8_t
HJBlueToothName
[
9
]
=
{
"HJ750"
};
const
uint8_t
HJBlueToothName
[
9
]
=
{
"HJ750"
};
uint8_t
UUIDConfigBuf
[
22
]
=
{
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0x00
};
uint8_t
UUIDConfigBuf
[
22
]
=
{
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0x00
};
//"600032023120100000995"
//"600032023120100000995"
uint8_t
SetBluetoothCloseCount
=
0
;
uint8_t
OSVersionASCLLList
[
20
]
=
uint8_t
OSVersionASCLLList
[
20
]
=
{
{
0x56
,
0x00
,
0x56
,
0x00
,
...
@@ -47,7 +48,8 @@ void TextService(void);
...
@@ -47,7 +48,8 @@ void TextService(void);
void
BlueToothService
(
void
)
void
BlueToothService
(
void
)
{
{
// SetUUIDTimes++;
if
(
SYS_OPR_STAT_IGN_ON
)
{
if
(
Get_Dis_Bluetooth_Open_Close
()
==
0
)
if
(
Get_Dis_Bluetooth_Open_Close
()
==
0
)
{
{
if
(
GetBlueToothVaild
==
0
)
if
(
GetBlueToothVaild
==
0
)
...
@@ -59,9 +61,17 @@ void BlueToothService(void)
...
@@ -59,9 +61,17 @@ void BlueToothService(void)
else
else
{
{
if
(
GetBlueToothVaild
==
1
)
if
(
GetBlueToothVaild
==
1
)
{
if
(
SetBluetoothCloseCount
<
30
)
{
{
SetBluetoothTurnXX
(
0
);
SetBluetoothTurnXX
(
0
);
}
else
{
GetBlueToothVaild
=
0
;
GetBlueToothVaild
=
0
;
SetBluetoothCloseCount
=
0
;
}
SetBluetoothCloseCount
++
;
}
}
}
}
...
@@ -120,25 +130,13 @@ void BlueToothService(void)
...
@@ -120,25 +130,13 @@ void BlueToothService(void)
SetTaskbarHeight
(
150
);
SetTaskbarHeight
(
150
);
SetBlueToothName
((
uint8_t
*
)
HJBlueToothName
,
sizeof
(
HJBlueToothName
));
SetBlueToothName
((
uint8_t
*
)
HJBlueToothName
,
sizeof
(
HJBlueToothName
));
TextService
();
TextService
();
}
else
{
SetBluetoothTurnXX
(
0
);
GetBlueToothVaild
=
0
;
}
// BlueConnectStatus = GetBlueToothPowerSTATE();
// juasfha = BlueToothPhoneData.BlueToothPhoneSate;
// juasfha = BlueToothPhoneData.PhoneBookTotalCount;
// for(i=0;i<20;i++)
// {
// sjhja[i] = BlueToothPhoneData.PhoneNumber[i];
// }
// for(i=0;i<100;i++)
// {
// PhoneName[i] = BlueToothPhoneData.BlueToothPhoneName[i];
// }
// _QRCODE_RECT QRCode_Rect;
// QRCode_Rect.x = QRCode_X;
// QRCode_Rect.y = QRCode_Y;
// QRCode_Rect.height = QRCode_HEIGHT;
// QRCode_Rect.width = QRCode_WIDTH;
// SetScreenType(QRCode_TYPE, QRCode_Rect);
}
}
TEXT_STRUCT
TextPara
[
TEXT_NUM_TOTAL
]
=
TEXT_STRUCT
TextPara
[
TEXT_NUM_TOTAL
]
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment