Browse Source

Fix KISS over WIFI

KISS_TNC
US1GHQ 2 months ago
parent
commit
3605bffe64
  1. 4
      src/taskTNC.cpp

4
src/taskTNC.cpp

@ -32,7 +32,7 @@ void handleKISSData(char character, int bufferIndex) {
return;
}
inTNCData->concat(character);
if (character == (char) FEND && (char) U_SABME && inTNCData->length() > 3) {
if (character == (char) U_SABME && inTNCData->length() > 3) {
bool isDataFrame = false;
const String &TNC2DataFrame = decode_kiss_pkt(*inTNCData, isDataFrame);
@ -90,7 +90,7 @@ void handleKISSData(char character, int bufferIndex) {
iterateWifiClients([](WiFiClient * client, int clientIdx, const String * unused){
while (client->available() > 0) {
char character = client->read();
handleKISSData(character, 2+clientIdx);
handleKISSData(character, 1);
}
}, nullptr, clients, MAX_WIFI_CLIENTS);

Loading…
Cancel
Save