Skip to content

Commit

Permalink
Wait for serial before running speed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish committed Oct 13, 2024
1 parent a55f003 commit 928e8ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions firmware/firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,13 @@ void setup() {
Serial.println("Kinetoscope boot!\n");

#ifdef RUN_TESTS
// Wait for Serial. No point running tests if we can't see the output.
while (!Serial) { delay(1); }

// Automatically connect to the network to run speed tests.
connect_network();

// Run tests.
run_tests();
#endif

Expand Down

0 comments on commit 928e8ec

Please sign in to comment.