Skip to content

Commit

Permalink
Do not wait for serial port in debug mode
Browse files Browse the repository at this point in the history
This could cause delays in critical setup.
  • Loading branch information
joeyparrish committed Sep 23, 2024
1 parent 11db229 commit 102d5ea
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions firmware/firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -299,16 +299,11 @@ static void process_command(uint8_t command, uint8_t arg) {
// and then process incoming commands from the Sega.

void setup() {
Serial.begin(115200);

#ifdef DEBUG
while (!Serial) { delay(10 /* ms */); } // Wait for serial port to connect
#endif
init_all_hardware();

Serial.begin(115200);
Serial.println("Kinetoscope boot!\n");

init_all_hardware();

#ifdef RUN_TESTS
// Automatically connect to the network to run speed tests.
connect_network();
Expand Down

0 comments on commit 102d5ea

Please sign in to comment.