From ea5a266ee2ef56fcd3d6619d26485c3db4f3a739 Mon Sep 17 00:00:00 2001 From: Marcel Peterkau Date: Sun, 13 Jun 2021 23:19:16 +0200 Subject: [PATCH] Added SerialDebug Output with define --- platformio.ini | 1 + src/main.cpp | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index 52245e7..7f0d797 100644 --- a/platformio.ini +++ b/platformio.ini @@ -21,6 +21,7 @@ upload_flags= --auth=UploadTheFlag build_flags= + -D SERIAL_DEBUG -D DEVICE_NAME='"DE CTF Timer Prototype 1"' -D WIFI_CLIENT -D WIFI_SSID='"BND_Scanner_#42"' diff --git a/src/main.cpp b/src/main.cpp index 4ea6aa7..a267dd8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -249,9 +249,9 @@ void SevenSeg_Output() } else { - disp_FAC_1.setBrightness(activeFaction == FACTION_1 ? 7 : 0); - disp_FAC_2.setBrightness(activeFaction == FACTION_2 ? 7 : 0); - disp_FAC_3.setBrightness(activeFaction == FACTION_3 ? 7 : 0); + disp_FAC_1.setBrightness(activeFaction == FACTION_1 ? 7 : 0); + disp_FAC_2.setBrightness(activeFaction == FACTION_2 ? 7 : 0); + disp_FAC_3.setBrightness(activeFaction == FACTION_3 ? 7 : 0); disp_FAC_1.showNumberDecEx(Count_Faction_1 / 60, Faction_1_dot, true, 4, 0); disp_FAC_2.showNumberDecEx(Count_Faction_2 / 60, Faction_2_dot, true, 4, 0); @@ -355,6 +355,9 @@ void setup() Serial.begin(9600); Serial.print("\n\n\n"); +#ifdef SERIAL_DEBUG + Serial.setDebugOutput(true); +#endif if (ina219.begin()) PowerMonitorTicker.start();