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();