Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiancetai
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
陈家乐
jiancetai
Commits
09bc778d
Commit
09bc778d
authored
Jan 30, 2026
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:进入ota模式
parent
03795fc7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+1
-2
app_lsdn.c
YueJin_test_bench/source/Appliciation/app_lsdn.c
+14
-3
init.c
YueJin_test_bench/source/System/init.c
+1
-1
No files found.
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
09bc778d
...
...
@@ -111,8 +111,7 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
// Key_Mode = 1; //左键
backflag
=
1
;
Key_Mode
=
3
;
}
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
{
...
...
YueJin_test_bench/source/Appliciation/app_lsdn.c
View file @
09bc778d
...
...
@@ -158,11 +158,11 @@ void Key_Judgment_Service(void)
{
Aimadata
.
Sig
.
media_left_key
=
0x00
;
}
else
if
(
Key_Mode
==
2
)
//右键
else
if
(
(
Key_Mode
==
2
)
)
//右键
{
Aimadata
.
Sig
.
media_right_key
=
0x00
;
}
else
if
((
Key_Mode
==
4
))
//中键
else
if
((
Key_Mode
==
4
)
||
(
Key_Mode
==
3
)
)
//中键
{
Aimadata
.
Sig
.
media_middle_key
=
0x00
;
}
...
...
@@ -173,7 +173,7 @@ void Key_Judgment_Service(void)
if
((
Key_Mode
==
1
)
||
(
Key_Mode
==
2
))
{
if
(
KeySendTime
<=
1
0
)
if
(
KeySendTime
<=
5
0
)
{
KeySendTime
++
;
}
...
...
@@ -183,6 +183,17 @@ void Key_Judgment_Service(void)
KeySendTime
=
0
;
}
}
else
if
(
Key_Mode
==
3
)
{
if
(
KeySendTime
<=
4100
)
{
KeySendTime
++
;
}
else
{
Key_Mode
=
0
;
}
}
else
if
(
Key_Mode
==
4
)
{
if
(
KeySendTime
<=
4000
)
...
...
YueJin_test_bench/source/System/init.c
View file @
09bc778d
...
...
@@ -111,7 +111,7 @@ void Sys_Startup_Init(void)
loc_config
.
pfnUARTReadMsgCallBack
=
UART_Put2
;
UART_Init
(
UART_RLIN32
,
&
loc_config
);
RELAY_VBAT_MCU
=
1
;
RELAY_KEY_MCU
=
0
;
RELAY_KEY_MCU
=
1
;
ONE_KEY
=
1
;
MENU_CHECK_STEP
=
1
;
...
...
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