Skip to content

Commit b59eba7

Browse files
committed
Increased the max sockets number to 8 for the W5200 module.
1 parent 12fe902 commit b59eba7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libraries/Ethernet/src/utility/w5100.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void W5x00Class::init(void)
9191
RBASE[i] = RXBUF_BASE + RSIZE * i;
9292
}
9393
} else if (chipset == W5x00Chipset::W5200) {
94-
sockets = 4;
94+
sockets = 8;
9595
SPI.beginTransaction(SPI_ETHERNET_SETTINGS);
9696
writeMR(1<<RST);
9797
for (uint8_t i=0; i<sockets; i++) {

libraries/Ethernet/src/utility/w5100.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ class W5x00Class {
343343
static const uint16_t SSIZE = 2048; // Max Tx buffer size
344344
private:
345345
static const uint16_t RSIZE = 2048; // Max Rx buffer size
346-
uint16_t SBASE[4]; // Tx buffer base address
347-
uint16_t RBASE[4]; // Rx buffer base address
346+
uint16_t SBASE[8]; // Tx buffer base address
347+
uint16_t RBASE[8]; // Rx buffer base address
348348

349349
private:
350350
inline static void initSS() { pinMode(SPI_CS, OUTPUT); }

0 commit comments

Comments
 (0)