aboutsummaryrefslogtreecommitdiff
path: root/libraries/Ethernet/utility/w5100.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/Ethernet/utility/w5100.cpp')
-rw-r--r--libraries/Ethernet/utility/w5100.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/Ethernet/utility/w5100.cpp b/libraries/Ethernet/utility/w5100.cpp
index aafabae..9c748fd 100644
--- a/libraries/Ethernet/utility/w5100.cpp
+++ b/libraries/Ethernet/utility/w5100.cpp
@@ -140,7 +140,7 @@ uint8_t W5100Class::write(uint16_t _addr, uint8_t _data)
uint16_t W5100Class::write(uint16_t _addr, const uint8_t *_buf, uint16_t _len)
{
- for (int i=0; i<_len; i++)
+ for (uint16_t i=0; i<_len; i++)
{
setSS();
SPI.transfer(0xF0);
@@ -166,7 +166,7 @@ uint8_t W5100Class::read(uint16_t _addr)
uint16_t W5100Class::read(uint16_t _addr, uint8_t *_buf, uint16_t _len)
{
- for (int i=0; i<_len; i++)
+ for (uint16_t i=0; i<_len; i++)
{
setSS();
SPI.transfer(0x0F);