From d2848e84e91f21bbfdb9078e46c612e23214b686 Mon Sep 17 00:00:00 2001 From: Junior Date: Tue, 20 Oct 2026 17:43:10 -0400 Subject: [PATCH] Only print error messages to serial if debug is TRUE --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index fff7411..fb3eb64 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -48,6 +48,9 @@ unsigned long sendDeviceStatus() { http.addHeader("Content-Type", "application/x-www-form-urlencoded"); String httpData = "mac=" + WiFi.macAddress() + "&board=" + BOARD + "&firmware=" + BOARDFIRMWARE + "&service=" + SERVICE; int httpResponseCode = http.POST(httpData); + if ( DEBUG && (httpResponseCode != 200) ) { + Serial.println("Error sending status: " + String(httpResponseCode)); + } http.end(); return millis(); }