We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87ae27a commit 0c210eeCopy full SHA for 0c210ee
libraries/Ethernet/src/EthernetUdp.h
@@ -10,7 +10,7 @@ class EthernetUDP : public lwipUDP {
10
public:
11
EthernetUDP() {}
12
virtual uint8_t begin(uint16_t port) override {
13
- CNetIf *ni = CLwipIf::getInstance().get(NI_ETHERNET);
+ CNetIf *ni = &Ethernet;
14
if(ni != nullptr) {
15
return lwipUDP::begin(IPAddress(ni->getIpAdd()), port);
16
}
libraries/WiFi/src/WiFiUdp.h
@@ -8,7 +8,7 @@ class WiFiUDP : public lwipUDP {
8
9
WiFiUDP() {}
- CNetIf *ni = CLwipIf::getInstance().get(NI_WIFI_STATION);
+ CNetIf *ni = &WiFiStation;
0 commit comments