Skip to content

Commit

Permalink
set debug as static
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Jan 14, 2025
1 parent f225b6f commit cfc64cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ uint8_t brightness = 2;
#endif

uint8_t settingsMenu = 0;
uint8_t debug = 0;
static uint8_t debug = 0;

String ssid;
String pwd;
Expand Down Expand Up @@ -518,7 +518,7 @@ void Task_ReadSerial(void *pvParameters) {
Serial.setTimeout(SERIAL_TIMEOUT);
Serial.begin(SERIAL_BAUD);
while (!Serial);
if (debug) {
if (1 == debug) {
DisplayNumber(SERIAL_BAUD, (SERIAL_BAUD >= 1000000 ? 7 : 6), 0, 0, 0, 0, 0,
1);
} else {
Expand Down Expand Up @@ -684,7 +684,7 @@ void Task_ReadSerial(void *pvParameters) {
payloadSize = (Serial.read() << 8) | Serial.read();

if (payloadSize > BUFFER_SIZE || payloadSize == 0) {
if (debug) {
if (1 == debug) {
display->DisplayText("payloadSize > BUFFER_SIZE", 10, 13, 255,
0, 0);
while (1);
Expand Down Expand Up @@ -1548,7 +1548,7 @@ void loop() {
}
}
} else {
if (debug) {
if (1 == debug) {
display->DisplayText("miniz error ", 0, 0, 255, 0, 0);
DisplayNumber(minizStatus, 3, 0, 6, 255, 0, 0);
}
Expand Down

0 comments on commit cfc64cc

Please sign in to comment.