Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
cm-projects
RIOT
Commits
af226d4f
You need to sign in or sign up before continuing.
Commit
af226d4f
authored
6 years ago
by
Gunar Schorcht
Browse files
Options
Downloads
Patches
Plain Diff
enc28j60: fix compilation with l2 stats enabled
parent
53c3f833
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/enc28j60/enc28j60.c
+4
-4
4 additions, 4 deletions
drivers/enc28j60/enc28j60.c
with
4 additions
and
4 deletions
drivers/enc28j60/enc28j60.c
+
4
−
4
View file @
af226d4f
...
@@ -248,10 +248,6 @@ static int nd_send(netdev_t *netdev, const iolist_t *iolist)
...
@@ -248,10 +248,6 @@ static int nd_send(netdev_t *netdev, const iolist_t *iolist)
mutex_lock
(
&
dev
->
devlock
);
mutex_lock
(
&
dev
->
devlock
);
#ifdef MODULE_NETSTATS_L2
netdev
->
stats
.
tx_bytes
+=
count
;
#endif
/* set write pointer */
/* set write pointer */
cmd_w_addr
(
dev
,
ADDR_WRITE_PTR
,
BUF_TX_START
);
cmd_w_addr
(
dev
,
ADDR_WRITE_PTR
,
BUF_TX_START
);
/* write control byte and the actual data into the buffer */
/* write control byte and the actual data into the buffer */
...
@@ -265,6 +261,10 @@ static int nd_send(netdev_t *netdev, const iolist_t *iolist)
...
@@ -265,6 +261,10 @@ static int nd_send(netdev_t *netdev, const iolist_t *iolist)
/* trigger the send process */
/* trigger the send process */
cmd_bfs
(
dev
,
REG_ECON1
,
-
1
,
ECON1_TXRTS
);
cmd_bfs
(
dev
,
REG_ECON1
,
-
1
,
ECON1_TXRTS
);
#ifdef MODULE_NETSTATS_L2
netdev
->
stats
.
tx_bytes
+=
c
;
#endif
mutex_unlock
(
&
dev
->
devlock
);
mutex_unlock
(
&
dev
->
devlock
);
return
c
;
return
c
;
}
}
...
...
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