platformio
This commit is contained in:
@@ -87,14 +87,10 @@ void EthernetClass::begin(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress g
|
||||
W5100.setIPAddress(&ip[0]);
|
||||
W5100.setGatewayIp(&gateway[0]);
|
||||
W5100.setSubnetMask(&subnet[0]);
|
||||
#elif ARDUINO > 106 || TEENSYDUINO > 121
|
||||
W5100.setIPAddress(ip._address.bytes);
|
||||
W5100.setGatewayIp(gateway._address.bytes);
|
||||
W5100.setSubnetMask(subnet._address.bytes);
|
||||
#else
|
||||
W5100.setIPAddress(ip._address);
|
||||
W5100.setGatewayIp(gateway._address);
|
||||
W5100.setSubnetMask(subnet._address);
|
||||
W5100.setIPAddress(ip.raw_address());
|
||||
W5100.setGatewayIp(gateway.raw_address());
|
||||
W5100.setSubnetMask(subnet.raw_address());
|
||||
#endif
|
||||
SPI.endTransaction();
|
||||
_dnsServerAddress = dns;
|
||||
@@ -244,4 +240,4 @@ void EthernetClass::setRetransmissionCount(uint8_t num)
|
||||
|
||||
|
||||
|
||||
EthernetClass Ethernet;
|
||||
EthernetClass Ethernet;
|
||||
Reference in New Issue
Block a user