Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 566dc84

Browse filesBrowse files
committed
fix(server): do not use same variable name
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent c4b0663 commit 566dc84
Copy full SHA for 566dc84

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎src/EthernetServer.cpp

Copy file name to clipboardExpand all lines: src/EthernetServer.cpp
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ size_t EthernetServer::write(const uint8_t *buffer, size_t size)
9393

9494
accept();
9595

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]);
96+
for (int i = 0; i < MAX_CLIENT; i++) {
97+
if (_tcp_client[i] != NULL) {
98+
if (_tcp_client[i]->pcb != NULL) {
99+
EthernetClient client(_tcp_client[i]);
100100
uint8_t s = client.status();
101101
if (s == TCP_ACCEPTED) {
102102
n += client.write(buffer, size);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.