Avoid conflicts with similar declaration of MAX_SOCK_NUM (#8)

This commit is contained in:
Arturo Guadalupi 2018-09-05 22:22:59 +02:00 committed by Sandeep Mistry
parent 0565c78a2f
commit 00c9caacb2
2 changed files with 2 additions and 2 deletions

View file

@ -125,7 +125,7 @@ size_t WiFiClient::write(uint8_t b) {
}
size_t WiFiClient::write(const uint8_t *buf, size_t size) {
if (_sock >= MAX_SOCK_NUM)
if (_sock >= WIFI_MAX_SOCK_NUM)
{
setWriteError();
return 0;

View file

@ -40,7 +40,7 @@
// Maximum size of a SSID list
#define WL_NETWORKS_LIST_MAXNUM 10
// Maxmium number of socket
#define MAX_SOCK_NUM 4
#define WIFI_MAX_SOCK_NUM 4
// Socket not available constant
#define SOCK_NOT_AVAIL 255
// Default state value for Wifi state field