Skip to content
Snippets Groups Projects
Commit 46f61e27 authored by Kyrre Ness Sjobaek's avatar Kyrre Ness Sjobaek
Browse files

Don't try zeroing an object (it's not a pointer...)

parent c8c586fd
No related branches found
No related tags found
1 merge request!1Fixes output formatting and variable initialization, moving config to separate file, project folder correctly named, hopefully fixes network crashes
...@@ -623,12 +623,11 @@ void TXTserver (uint8_t ch) { ...@@ -623,12 +623,11 @@ void TXTserver (uint8_t ch) {
for (byte i = 0; i < MAX_SOCK_NUM; i++) { for (byte i = 0; i < MAX_SOCK_NUM; i++) {
if ( clients[i] && (clients_ch[i]==ch) && !clients[i].connected() ) { if ( clients[i] && (clients_ch[i]==ch) && !clients[i].connected() ) {
clients[i].stop(); clients[i].stop();
clients_ch[i]=0;
Serial.print("Closed connection for ch="); Serial.print("Closed connection for ch=");
Serial.print(ch); Serial.print(ch);
Serial.print(" slot "); Serial.print(" slot ");
Serial.println(i); Serial.println(i);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment