Remove unused parameter of sendNfcData()

Removes unused client parameter of the sendNfcData function.
This commit is contained in:
Jan Philipp Ecker committed 2025-08-02 23:05:56 +02:00
1 parent 852a2f4c69
commit 6b6aec07b3
3 files changed
+8 -8

No files matched your search

+3 -3
View File
@@ -34,7 +34,7 @@ void onWsEvent(AsyncWebSocket *server, AsyncWebSocketClient *client, AwsEventTyp
Serial.println("Neuer Client verbunden!");
// Sende die AMS-Daten an den neuen Client
if (!bambuDisabled) sendAmsData(client);
sendNfcData(client);
sendNfcData();
foundNfcTag(client, 0);
sendWriteResult(client, 3);
@@ -150,11 +150,11 @@ void sendWriteResult(AsyncWebSocketClient *client, uint8_t success) {
void foundNfcTag(AsyncWebSocketClient *client, uint8_t success) {
if (success == lastSuccess) return;
ws.textAll("{\"type\":\"nfcTag\", \"payload\":{\"found\": " + String(success) + "}}");
sendNfcData(nullptr);
sendNfcData();
lastSuccess = success;
}
void sendNfcData(AsyncWebSocketClient *client) {
void sendNfcData() {
if (lastnfcReaderState == nfcReaderState) return;
// TBD: Why is there no status for reading the tag?
switch(nfcReaderState){