From 1ade0074731d2319c903c3a811450c2ea16e3cbd Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Mon, 24 Feb 2025 19:14:45 +0100 Subject: [PATCH] fix: remove debug output from splitTextIntoLines and update weight display logic in scanRfidTask --- src/display.cpp | 1 - src/nfc.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/display.cpp b/src/display.cpp index 52eca6b..714aa98 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -117,7 +117,6 @@ std::vector splitTextIntoLines(String text, uint8_t textSize) { lines.push_back(currentLine); } - Serial.println(lines.size()); return lines; } diff --git a/src/nfc.cpp b/src/nfc.cpp index a0910e1..c7625c2 100644 --- a/src/nfc.cpp +++ b/src/nfc.cpp @@ -420,7 +420,7 @@ void scanRfidTask(void * parameter) { //uidString = ""; nfcJsonData = ""; Serial.println("Tag entfernt"); - oledShowWeight(0); + if (!autoSendToBambu) oledShowWeight(weight); } // aktualisieren der Website wenn sich der Status ändert