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
b92ecf5b
Commit
b92ecf5b
authored
Jan 07, 2025
by
李冠华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:修改由于接收到的不完整数据过多导致读取485数据长度剩余空间为0,引起检测台停止接收数据的问题
parent
2f2ae5f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
RS485_Protocol_Lib.c
YueJin_test_bench/source/Appliciation/RS485_Protocol_Lib.c
+4
-0
No files found.
YueJin_test_bench/source/Appliciation/RS485_Protocol_Lib.c
View file @
b92ecf5b
...
@@ -67,6 +67,10 @@ void RS485_Protocol_Service(void)
...
@@ -67,6 +67,10 @@ void RS485_Protocol_Service(void)
if
(
UARTRead_Cbk
!=
Protocol_NULL
)
if
(
UARTRead_Cbk
!=
Protocol_NULL
)
{
{
if
(
mDataBufLen
>=
200U
)
{
mDataBufLen
=
0U
;
}
readNum
=
UARTRead_Cbk
(
mDataBufPtr
+
mDataBufLen
,
256
-
mDataBufLen
);
readNum
=
UARTRead_Cbk
(
mDataBufPtr
+
mDataBufLen
,
256
-
mDataBufLen
);
if
(
readNum
>
0
)
if
(
readNum
>
0
)
{
{
...
...
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