Hello,

I got the library to compile but don't have the hardware to test it.

Could you please edit the following file and let me know if it works?

/usr/share/arduino/libraries/Ethernet/Ethernet.cpp

Change:
W5100.setIPAddress(local_ip._address);
W5100.setGatewayIp(gateway._address);
W5100.setSubnetMask(subnet._address);



to be:
W5100.setIPAddress(local_ip._address.a8);
W5100.setGatewayIp(gateway._address.a8);
W5100.setSubnetMask(subnet._address.a8);


(that is, add a ".a8" to the end of the "_address")

Please try it out and report back here so I can spread the word.

Cheers,
Scott






The formal patch is:
Index: arduino/libraries/Ethernet/Ethernet.cpp
===================================================================
--- arduino.orig/libraries/Ethernet/Ethernet.cpp        2012-03-11
19:09:34.421223498 -0400
+++ arduino/libraries/Ethernet/Ethernet.cpp     2012-08-17 12:14:09.845198234 
-0400
@@ -61,9 +61,9 @@
 {
   W5100.init();
   W5100.setMACAddress(mac);
-  W5100.setIPAddress(local_ip._address);
-  W5100.setGatewayIp(gateway._address);
-  W5100.setSubnetMask(subnet._address);
+  W5100.setIPAddress(local_ip._address.a8);
+  W5100.setGatewayIp(gateway._address.a8);
+  W5100.setSubnetMask(subnet._address.a8);
   _dnsServerAddress = dns_server;
 }


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to