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
feb92109
Commit
feb92109
authored
Aug 21, 2024
by
张金硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:修复ota升级二维码在其他页面显示的bug
parent
5b74da9c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
BlueTooth.c
Firmware/Source/Application/BlueTooth.c
+18
-13
No files found.
Firmware/Source/Application/BlueTooth.c
View file @
feb92109
...
@@ -5,13 +5,15 @@ uint8_t OTA_Update_Count_Close = 0;
...
@@ -5,13 +5,15 @@ uint8_t OTA_Update_Count_Close = 0;
uint8_t
Update_Graphic_Count
=
0
;
uint8_t
Update_Graphic_Count
=
0
;
uint8_t
GetBlueToothVaild
=
0
;
uint8_t
GetBlueToothVaild
=
0
;
uint8_t
GetPhoneBookVaild
=
0
;
uint8_t
GetPhoneBookVaild
=
0
;
_PICID_Struct
PicObj
;
_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
};
uint8_t
sjhja
[
20
]
=
{
0
};
//
uint8_t sjhja[20] = {0};
uint8_t
PhoneName
[
100
]
=
{
0
};
//
uint8_t PhoneName[100] = {0};
uint8_t
BlueConnectStatus
;
//
uint8_t BlueConnectStatus;
ee_uint16_t
juasfha
;
//
ee_uint16_t juasfha;
void
BlueToothService
()
void
BlueToothService
()
{
{
char
i
;
char
i
;
...
@@ -70,24 +72,27 @@ void BlueToothService()
...
@@ -70,24 +72,27 @@ void BlueToothService()
void
UpdateGraphics
(
void
)
void
UpdateGraphics
(
void
)
{
{
_PICID_Struct
PicObj
;
PicObj
.
qr_logo_id
=
0
;
PicObj
.
qr_logo_id
=
0
;
PicObj
.
main_pic_id
=
Pic_0382
;
PicObj
.
main_pic_id
=
Pic_0382
;
PicObj
.
qr_pic_id
=
Pic_0316
;
PicObj
.
qr_pic_id
=
Pic_0316
;
PicObj
.
update_pic_id
=
Pic_0193
;
PicObj
.
update_pic_id
=
Pic_0193
;
PicObj
.
second_menu
=
0
;
PicObj
.
second_menu
=
0
;
PicObj
.
navigation_task_id
=
0
;
PicObj
.
navigation_task_id
=
0
;
if
(
OTA_Update_Flag
==
1
)
{
PackedTransfer_DisplayPhoneMirrorQRcode
(
0
,
PicObj
);
PackedTransfer_DisplayPhoneMirrorQRcode
(
0
,
PicObj
);
}
}
}
void
OTAUpdateService
(
void
)
void
OTAUpdateService
(
void
)
{
{
_QRCODE_RECT
QRCode_Rect
;
QRCode_Rect
.
x
=
457
;
QRCode_Rect
.
x
=
457
;
QRCode_Rect
.
y
=
137
;
QRCode_Rect
.
y
=
137
;
QRCode_Rect
.
height
=
240
;
QRCode_Rect
.
height
=
240
;
QRCode_Rect
.
width
=
240
;
QRCode_Rect
.
width
=
240
;
if
(
Menu_Get_Current_Cursor_Information
()
!=
MENU_ITEM_FAULT_INFORMATION
)
{
OTA_Update_Flag
=
0
;
}
if
(
OTA_Update_Flag
==
1
)
if
(
OTA_Update_Flag
==
1
)
{
{
if
(
OTA_Update_Count_Open
<
5
)
if
(
OTA_Update_Count_Open
<
5
)
...
...
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