From 832f3d883c229bdb85a78c0c641c90972df5201d Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Sat, 8 Nov 2025 12:30:17 +0100 Subject: [PATCH] display success only when card read --- the-cup.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/the-cup.ino b/the-cup.ino index 11a08d3..b9f23b6 100644 --- a/the-cup.ino +++ b/the-cup.ino @@ -74,7 +74,6 @@ void send_uid(char reader_uid[]) { else { //if you get here you have connected to the WiFi Serial.println("connected...yeey :)"); - displaySuccess(); } auto client = std::make_unique(); @@ -92,11 +91,12 @@ void send_uid(char reader_uid[]) { if (httpCode > 0) { if (httpCode == HTTP_CODE_CREATED) { - displaySuccess(); } else { + Serial.println("Remote error while sending uid"); displayError(); } } else { + Serial.print("Remote error while sending uid"); displayError(); }