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
18267458
Commit
18267458
authored
Jun 30, 2025
by
梁百峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:修复数据与帧尾相同时错误获取数据问题
parent
93f000e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
Barcode_Scanner.c
YueJin_test_bench/source/Appliciation/Barcode_Scanner.c
+15
-4
No files found.
YueJin_test_bench/source/Appliciation/Barcode_Scanner.c
View file @
18267458
...
...
@@ -232,10 +232,21 @@ void datacheck(void)
{
for
(
int
i
=
0
;
i
<
255
;
i
++
)
{
if
(
BarCode
[
i
]
==
0x4A
&&
BarCode
[
i
-
1
]
==
0x4B
)
if
(
BarCode
[
3
]
==
0x40
)
{
arraynum
=
i
;
if
(
BarCode
[
i
]
==
0x4A
&&
BarCode
[
i
-
1
]
==
0x4B
&&
i
>
0x40
-
3
)
{
arraynum
=
i
;
}
}
else
{
if
(
BarCode
[
i
]
==
0x4A
&&
BarCode
[
i
-
1
]
==
0x4B
)
{
arraynum
=
i
;
}
}
}
// g_Stage = 1;
if
(((
BarCode
[
arraynum
])
==
0x4A
)
&&
((
BarCode
[
arraynum
-
1
])
==
0x4B
))
...
...
@@ -494,8 +505,8 @@ void Recv_Byte(void)
}
if
((
mDataBufPtr
[
k
]
==
0x59
&&
mDataBufPtr
[
k
+
1
]
==
0x44
)
&&
(
mDataBufPtr
[
i
]
==
0x4A
)
&&
(
mDataBufPtr
[
i
-
1
]
==
0x4B
))
if
((
mDataBufPtr
[
k
]
==
0x59
&&
mDataBufPtr
[
k
+
1
]
==
0x44
)
&&
(
mDataBufPtr
[
i
]
==
0x4A
)
&&
(
mDataBufPtr
[
i
-
1
]
==
0x4B
)
&&
(
i
>
mDataBufPtr
[
k
+
3
]
-
3
)
)
{
if
(
i
<
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