Skip to content

Commit 00c9caa

Browse files
agdlsandeepmistry
authored andcommitted
Avoid conflicts with similar declaration of MAX_SOCK_NUM (#8)
1 parent 0565c78 commit 00c9caa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/WiFiClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ size_t WiFiClient::write(uint8_t b) {
125125
}
126126

127127
size_t WiFiClient::write(const uint8_t *buf, size_t size) {
128-
if (_sock >= MAX_SOCK_NUM)
128+
if (_sock >= WIFI_MAX_SOCK_NUM)
129129
{
130130
setWriteError();
131131
return 0;

src/utility/wl_definitions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
// Maximum size of a SSID list
4141
#define WL_NETWORKS_LIST_MAXNUM 10
4242
// Maxmium number of socket
43-
#define MAX_SOCK_NUM 4
43+
#define WIFI_MAX_SOCK_NUM 4
4444
// Socket not available constant
4545
#define SOCK_NOT_AVAIL 255
4646
// Default state value for Wifi state field

0 commit comments

Comments
 (0)