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
fa89f261
Commit
fa89f261
authored
5 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Minor changes.
parent
97e0d985
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
comm/include/comm.h
+2
-2
2 additions, 2 deletions
comm/include/comm.h
dynamixel_base/src/dynamixel_slave.c
+6
-6
6 additions, 6 deletions
dynamixel_base/src/dynamixel_slave.c
with
8 additions
and
8 deletions
comm/include/comm.h
+
2
−
2
View file @
fa89f261
...
...
@@ -712,7 +712,7 @@ comm_error comm_is_receive_done(TComm *dev);
* \return the error of the last operation or COMM_BUSY if the operation
* is still in progress.
*/
inline
unsigned
char
comm_get_error
(
TComm
*
dev
)
static
inline
unsigned
char
comm_get_error
(
TComm
*
dev
)
{
return
dev
->
error
;
}
...
...
@@ -729,7 +729,7 @@ inline unsigned char comm_get_error(TComm *dev)
* behavior is unpredictable.
* \param error identifier of the error to be set
*/
inline
void
comm_set_error
(
TComm
*
dev
,
unsigned
char
error
)
static
inline
void
comm_set_error
(
TComm
*
dev
,
unsigned
char
error
)
{
dev
->
error
=
error
;
}
...
...
This diff is collapsed.
Click to expand it.
dynamixel_base/src/dynamixel_slave.c
+
6
−
6
View file @
fa89f261
...
...
@@ -12,17 +12,17 @@ unsigned char dyn_slave_irq_receive_cb(TDynamixelSlave *dyn_slave,unsigned char
case
0
:
if
(
byte
==
0xFF
)
{
dyn_slave
->
rx_buffer
[
dyn_slave
->
received_bytes
]
=
byte
;
dyn_slave
->
received_bytes
++
;
dyn_slave
->
received_bytes
++
;
}
break
;
case
1
:
if
(
byte
==
0xFF
)
{
dyn_slave
->
rx_buffer
[
dyn_slave
->
received_bytes
]
=
byte
;
dyn_slave
->
received_bytes
++
;
dyn_slave
->
received_bytes
++
;
}
else
dyn_slave
->
received_bytes
--
;
break
;
break
;
case
2
:
if
(
byte
==
0xFD
)
// version 2 header
{
if
(
dyn_slave
->
version
==
DYN_VER2
)
// the module is configured for version 2
...
...
@@ -36,9 +36,9 @@ unsigned char dyn_slave_irq_receive_cb(TDynamixelSlave *dyn_slave,unsigned char
else
if
(
byte
!=
0xFF
)
{
dyn_slave
->
rx_buffer
[
dyn_slave
->
received_bytes
]
=
byte
;
dyn_slave
->
received_bytes
++
;
dyn_slave
->
received_bytes
++
;
}
break
;
break
;
case
3
:
dyn_slave
->
rx_buffer
[
dyn_slave
->
received_bytes
]
=
byte
;
if
(
dyn_slave
->
version
==
DYN_VER1
)
{
...
...
@@ -51,7 +51,7 @@ unsigned char dyn_slave_irq_receive_cb(TDynamixelSlave *dyn_slave,unsigned char
}
else
dyn_slave
->
received_bytes
++
;
break
;
break
;
case
4
:
dyn_slave
->
rx_buffer
[
dyn_slave
->
received_bytes
]
=
byte
;
dyn_slave
->
received_bytes
++
;
break
;
...
...
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