Skip to content

Commit

Permalink
print CONNECTED
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Jan 14, 2025
1 parent 217fa6f commit ab7992c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,12 @@ void Task_ReadSerial(void *pvParameters) {
Serial.setTimeout(SERIAL_TIMEOUT);
Serial.begin(SERIAL_BAUD);
while (!Serial);
if (debug)
if (debug) {
DisplayNumber(SERIAL_BAUD, (SERIAL_BAUD >= 1000000 ? 7 : 6), 0, 0, 0, 0, 0,
1);
else
} else {
display->DisplayText("USB UART", 0, 0, 0, 0, 0, 1);
}
#endif

while (1) {
Expand Down Expand Up @@ -538,6 +539,7 @@ void Task_ReadSerial(void *pvParameters) {
Serial.write(ZEDMD_VERSION_PATCH);
numCtrlCharsFound = 0;
transportActive = true;
display->DisplayText("CONNECTED", 0, TOTAL_HEIGHT - 5, 0, 0, 0, 1);
Serial.write('R');
break;
}
Expand Down Expand Up @@ -643,15 +645,15 @@ void Task_ReadSerial(void *pvParameters) {
case 98: // disable debug mode
{
Serial.write('A');
debug = false;
debug = 0;
numCtrlCharsFound = 0;
break;
}

case 99: // enable debug mode
{
Serial.write('A');
debug = true;
debug = 1;
numCtrlCharsFound = 0;
break;
}
Expand Down Expand Up @@ -1314,8 +1316,10 @@ void setup() {
}
#ifdef ZEDMD_HD_HALF
case 6: { // Y Offset
if (up && ++yOffset > 32) yOffset = 0;
else if (down && --yOffset < 0) yOffset = 32;
if (up && ++yOffset > 32)
yOffset = 0;
else if (down && --yOffset < 0)
yOffset = 32;
display->ClearScreen();
RefreshSetupScreen();
display->DisplayText("Y Offset",
Expand Down

0 comments on commit ab7992c

Please sign in to comment.