compiling in new environment

This commit is contained in:
Wolfgang Hottgenroth
2017-01-04 16:59:18 +01:00
parent 06b56e64da
commit a18234f696
9 changed files with 595 additions and 376 deletions

View File

@ -2,6 +2,8 @@
#include "Ethernet.h"
#include "Dhcp.h"
#include "IPAddress.h"
// XXX: don't make assumptions about the value of MAX_SOCK_NUM.
uint8_t EthernetClass::_state[MAX_SOCK_NUM] = {
0, 0, 0, 0 };
@ -67,9 +69,9 @@ void EthernetClass::begin(uint8_t *mac, IPAddress local_ip, IPAddress dns_server
W5100.init();
SPI.beginTransaction(SPI_ETHERNET_SETTINGS);
W5100.setMACAddress(mac);
W5100.setIPAddress(local_ip._address);
W5100.setGatewayIp(gateway._address);
W5100.setSubnetMask(subnet._address);
W5100.setIPAddress(local_ip._address.bytes);
W5100.setGatewayIp(gateway._address.bytes);
W5100.setSubnetMask(subnet._address.bytes);
SPI.endTransaction();
_dnsServerAddress = dns_server;
}