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 c4b0663 commit 566dc84Copy full SHA for 566dc84
src/EthernetServer.cpp
@@ -93,10 +93,10 @@ size_t EthernetServer::write(const uint8_t *buffer, size_t size)
93
94
accept();
95
96
- for (int n = 0; n < MAX_CLIENT; n++) {
97
- if (_tcp_client[n] != NULL) {
98
- if (_tcp_client[n]->pcb != NULL) {
99
- EthernetClient client(_tcp_client[n]);
+ for (int i = 0; i < MAX_CLIENT; i++) {
+ if (_tcp_client[i] != NULL) {
+ if (_tcp_client[i]->pcb != NULL) {
+ EthernetClient client(_tcp_client[i]);
100
uint8_t s = client.status();
101
if (s == TCP_ACCEPTED) {
102
n += client.write(buffer, size);
0 commit comments