Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
etherlabmaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
ICS Control System Infrastructure
etherlabmaster
Commits
fc2a2ce4
Commit
fc2a2ce4
authored
18 years ago
by
Florian Pose
Browse files
Options
Downloads
Patches
Plain Diff
Changed output of ec_state_string() for error flag to "+ ERROR".
parent
8b639ff4
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
master/globals.h
+1
-1
1 addition, 1 deletion
master/globals.h
master/module.c
+2
-2
2 additions, 2 deletions
master/module.c
with
3 additions
and
3 deletions
master/globals.h
+
1
−
1
View file @
fc2a2ce4
...
...
@@ -66,7 +66,7 @@
#define EC_WAIT_SDO_DICT 3
/** minimum size of a buffer used with ec_state_string() */
#define EC_STATE_STRING_SIZE 3
0
#define EC_STATE_STRING_SIZE 3
2
/******************************************************************************
* EtherCAT protocol
...
...
This diff is collapsed.
Click to expand it.
master/module.c
+
2
−
2
View file @
fc2a2ce4
...
...
@@ -265,8 +265,8 @@ size_t ec_state_string(uint8_t states, /**< slave states */
off
+=
sprintf
(
buffer
+
off
,
"OP"
);
}
if
(
states
&
EC_SLAVE_STATE_ACK_ERR
)
{
if
(
!
first
)
off
+=
sprintf
(
buffer
+
off
,
"
,
"
);
off
+=
sprintf
(
buffer
+
off
,
"ERR"
);
if
(
!
first
)
off
+=
sprintf
(
buffer
+
off
,
"
+
"
);
off
+=
sprintf
(
buffer
+
off
,
"ERR
OR
"
);
}
return
off
;
...
...
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