Skip to content
Snippets Groups Projects
Commit b3c39274 authored by kYc0o's avatar kYc0o
Browse files

drivers/encx24j600/encx24j600.c : fix counter var length

parent e0170336
No related branches found
No related tags found
No related merge requests found
...@@ -301,7 +301,7 @@ static int _send(netdev_t *netdev, const struct iovec *vector, unsigned count) { ...@@ -301,7 +301,7 @@ static int _send(netdev_t *netdev, const struct iovec *vector, unsigned count) {
/* copy packet to SRAM */ /* copy packet to SRAM */
size_t len = 0; size_t len = 0;
for (int i = 0; i < count; i++) { for (unsigned i = 0; i < count; i++) {
sram_op(dev, ENC_WGPDATA, (i ? 0xFFFF : TX_BUFFER_START), vector[i].iov_base, vector[i].iov_len); sram_op(dev, ENC_WGPDATA, (i ? 0xFFFF : TX_BUFFER_START), vector[i].iov_base, vector[i].iov_len);
len += vector[i].iov_len; len += vector[i].iov_len;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment