Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stm32_libraries
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
humanoides
tools
stm32_libraries
Commits
876d0bbc
Commit
876d0bbc
authored
9 months ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Completelly erase the buffer once it has been processed.
parent
799a5adf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dynamixel_base/src/dynamixel_slave.c
+3
-3
3 additions, 3 deletions
dynamixel_base/src/dynamixel_slave.c
with
3 additions
and
3 deletions
dynamixel_base/src/dynamixel_slave.c
+
3
−
3
View file @
876d0bbc
...
...
@@ -106,8 +106,8 @@ unsigned char dyn_slave_check_new_packet(TDynamixelSlave *slave)
void
dyn_slave_loop
(
TDynamixelSlave
*
slave
)
{
unsigned
char
i
,
send_status
=
0xFF
,
error
,
data
[
MAX_DYN_SLAVE_TX_BUFFER_LEN
];
unsigned
short
int
length
;
unsigned
char
send_status
=
0xFF
,
error
,
data
[
MAX_DYN_SLAVE_TX_BUFFER_LEN
];
unsigned
short
int
length
,
i
;
unsigned
char
*
buffer
;
if
(
slave
!=
0x00000000
)
...
...
@@ -155,7 +155,7 @@ void dyn_slave_loop(TDynamixelSlave *slave)
dyn_slave_send_cb
(
slave
);
}
// erase header of the current buffer
for
(
i
=
0
;
i
<
4
;
i
++
)
for
(
i
=
0
;
i
<
MAX_DYN_SLAVE_RX_BUFFER_LEN
;
i
++
)
buffer
[
i
]
=
0x00
;
}
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment