From 1d881a4b43e76b31ea5d82263d083f7c61ed664f Mon Sep 17 00:00:00 2001 From: travis-farmer Date: Sat, 18 Nov 2023 14:07:19 -0500 Subject: [PATCH] cleaning up --- Wifi_NINA.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Wifi_NINA.cpp b/Wifi_NINA.cpp index ea271d5..4672d85 100644 --- a/Wifi_NINA.cpp +++ b/Wifi_NINA.cpp @@ -219,7 +219,6 @@ void WifiNINA::checkForNewClient() { for (byte clientId=0; clientIdflush(); // clear out the input buffer DIAG(F("New client connected to slot %d"),clientId); //TJF: brought in for debugging. return; } @@ -233,7 +232,6 @@ void WifiNINA::checkForLostClients() { clients[clientId]->stop(); DIAG(F("Remove client %d"), clientId); CommandDistributor::forget(clientId); - //delete c; //TJF: this causes a crash when client drops.. commenting out for now. clients[clientId]=nullptr; } } @@ -270,12 +268,7 @@ void WifiNINA::checkForClientOutput() { return; } // emit data to the client object - // This should work in theory, the - //DIAG(F("send message")); //TJF: only for diag - //TJF: the old code had to add a 0x00 byte to the end to terminate the - //TJF: c string, before sending it. i take it this is not needed? for (int i=0;iwrite(outboundRing->read()); - //c->write((byte)0x00); } void WifiNINA::loop() {