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 7c32bbe commit 7ac1ad0Copy full SHA for 7ac1ad0
src/Ethernet.h
@@ -33,11 +33,13 @@
33
// up to 4 sockets. W5200 & W5500 can have up to 8 sockets. Several bytes
34
// of RAM are used for each socket. Reducing the maximum can save RAM, but
35
// you are limited to fewer simultaneous connections.
36
+#ifndef MAX_SOCK_NUM
37
#if defined(RAMEND) && defined(RAMSTART) && ((RAMEND - RAMSTART) <= 2048)
38
#define MAX_SOCK_NUM 4
39
#else
40
#define MAX_SOCK_NUM 8
41
#endif
42
+#endif
43
44
// By default, each socket uses 2K buffers inside the WIZnet chip. If
45
// MAX_SOCK_NUM is set to fewer than the chip's maximum, uncommenting
0 commit comments