Skip to content

Commit 42063d1

Browse files
minor changes on file
1 parent 10a05bd commit 42063d1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libraries/lwIpWrapper/src/CNetIf.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#pragma once
22

3-
// #define LWIP_USE_TIMER
43
#define UNUSED(x) (void)(x)
54

65
#define USE_LWIP_AS_LIBRARY
@@ -80,7 +79,7 @@ typedef enum {
8079
NI_ETHERNET
8180
} NetIfType_t;
8281

83-
#define MAX_CLIENT 32
82+
#define MAX_CLIENT MEMP_NUM_TCP_PCB
8483
#define MAX_DHCP_TRIES 4
8584
#define TIMEOUT_DNS_REQUEST 10000U
8685

@@ -97,7 +96,6 @@ typedef enum {
9796
#define INVALID_RESPONSE -4
9897

9998
class CLwipIf;
100-
class lwipClient;
10199

102100
/* Base class implements DHCP, derived class will switch it on or off */
103101
class CNetIf: public NetworkInterface {
@@ -331,7 +329,7 @@ class CLwipIf {
331329
// functions that handle DNS resolution
332330
// DNS servers are also set by dhcp
333331
#if LWIP_DNS
334-
// add a dns server, priority set to 0 means it is the first being queryed, -1 means the last
332+
// add a dns server, priority set to 0 means it is the first being queried, -1 means the last
335333
uint8_t addDnsServer(const IPAddress& aDNSServer, int8_t priority=-1);
336334
void clearDnsServers();
337335

0 commit comments

Comments
 (0)