~ubuntu-branches/debian/experimental/arduino/experimental

« back to all changes in this revision

Viewing changes to libraries/Ethernet/utility/w5100.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2012-03-11 18:19:42 UTC
  • mfrom: (1.1.5) (5.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20120311181942-be2clnbz1gcehixb
Tags: 1:1.0.1~rc1+dfsg-1
New upstream release, experimental.

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
 
141
141
uint16_t W5100Class::write(uint16_t _addr, const uint8_t *_buf, uint16_t _len)
142
142
{
143
 
  for (int i=0; i<_len; i++)
 
143
  for (uint16_t i=0; i<_len; i++)
144
144
  {
145
145
    setSS();    
146
146
    SPI.transfer(0xF0);
166
166
 
167
167
uint16_t W5100Class::read(uint16_t _addr, uint8_t *_buf, uint16_t _len)
168
168
{
169
 
  for (int i=0; i<_len; i++)
 
169
  for (uint16_t i=0; i<_len; i++)
170
170
  {
171
171
    setSS();
172
172
    SPI.transfer(0x0F);