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
da554a8b
Commit
da554a8b
authored
Mar 17, 2026
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:更新版本号校验
parent
5f521800
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
158 additions
and
146 deletions
+158
-146
Barcode_Scanner.c
YueJin_test_bench/source/Appliciation/Barcode_Scanner.c
+0
-1
Check_Ctrl.c
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
+22
-8
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+134
-137
Display_Info.h
YueJin_test_bench/source/Appliciation/Display_Info.h
+2
-0
No files found.
YueJin_test_bench/source/Appliciation/Barcode_Scanner.c
View file @
da554a8b
...
...
@@ -29,7 +29,6 @@ static uint32_t Protocol_UartRead1(uint8_t *pData, uint32_t len);//扫码枪
static
uint32_t
Protocol_UartRead2
(
uint8_t
*
pData
,
uint32_t
len
);
//esp32
uint8_t
nowdata
[
4
];
uint8_t
lastdata
[
4
];
uint8_t
checkresult
;
uint8_t
sendmsg
[
8
];
uint8_t
timenum
=
0
;
uint8_t
firstflag
=
0
;
...
...
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
View file @
da554a8b
...
...
@@ -70,23 +70,37 @@ void Function_Check_Ctrl(uint32_t cmd);
void
MENU_CHECK_STEP_ADD
(
void
)
{
MENU_CHECK_STEP
++
;
if
(
checkresult
!=
1
)
//版本号检验,如果取消版本号校验屏蔽此条
{
return
;
}
if
(
MENU_CHECK_STEP
>
17
)
if
(
AutoCheck
==
1
)
//光感校验,如果取消光感校验屏蔽此条(开发测试使用,正常自动判别在Display_Ctrl.c文件)
{
MENU_CHECK_STEP
=
0
;
if
((
guangganflag
!=
3
)
&&
(
MENU_CHECK_STEP
==
3
))
{
return
;
}
}
if
((
guangganflag
==
2
||
guangganflag
==
1
)
&&
guangganflag
!=
3
)
if
((
CurrentWrong
==
1
)
&&
(
MENU_CHECK_STEP
==
13
))
//静态电流检验,如果取消静态电流检验屏蔽此条
{
MENU_CHECK_STEP
=
3
;
return
;
}
if
(
MENU_CHECK_STEP
<
17
)
//循环
{
MENU_CHECK_STEP
++
;
}
else
{
MENU_CHECK_STEP
=
0
;
}
}
void
MENU_CHECK_STEP_SUB
(
void
)
{
if
(
MENU_CHECK_STEP
!=
0
);
MENU_CHECK_STEP
--
;
MENU_CHECK_STEP
--
;
}
void
MENU_CHECK_Init
(
void
)
...
...
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
da554a8b
This diff is collapsed.
Click to expand it.
YueJin_test_bench/source/Appliciation/Display_Info.h
View file @
da554a8b
...
...
@@ -49,6 +49,8 @@ enum DisplayFont
extern
unsigned
int
Display_Menu_Type
;
extern
uint32_t
odo_val_Back
;
extern
uint8_t
AutoCheck
;
extern
uint8_t
CurrentWrong
;
void
GeneralInfoDisp
(
unsigned
char
*
p
,
unsigned
short
x
,
unsigned
short
y
);
void
Display_Title_Info
(
void
);
void
Display_Version_Info
(
uint32_t
ON_OFF
);
...
...
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