Skip to content

Commit ea1717b

Browse files
committed
more fixes
1 parent 8c5ae3c commit ea1717b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

libraries/DNSServer/src/DNSServer.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ DNSServer::DNSServer(const String &domainName) : _port(DNS_DEFAULT_PORT), _ttl(h
2020

2121
bool DNSServer::start(){
2222
if (_resolvedIP.operator uint32_t() == 0){ // no address is set, try to obtain AP interface's IP
23+
#if SOC_WIFI_SUPPORTED
2324
if (WiFi.getMode() & WIFI_AP){
2425
_resolvedIP = WiFi.softAPIP();
25-
} else return false; // won't run if WiFi is not in AP mode
26+
return true;
27+
}
28+
#endif
29+
return false; // won't run if WiFi is not in AP mode
2630
}
2731

2832
_udp.close();

libraries/Ethernet/examples/ETH_TLK110/ETH_TLK110.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
static bool eth_connected = false;
1616

1717
// WARNING: WiFiEvent is called from a separate FreeRTOS task (thread)!
18-
void onEvent(WiFiEvent_t event)
18+
void onEvent(arduino_event_id_t event)
1919
{
2020
switch (event) {
2121
case ARDUINO_EVENT_ETH_START:

0 commit comments

Comments
 (0)