Skip to content

Commit 147b39c

Browse files
committed
as some people are not seeing issues with garbage characters on startup I put the startup delay behind a config check - SERIAL_INTERFACE_INIT_DELAY
1 parent df853d8 commit 147b39c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

firmware/config/config.h.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@
7575
// LOG_LEVEL_WARNING, LOG_LEVEL_NOTICE, LOG_LEVEL_VERBOSE
7676
#define LOG_LEVEL LOG_LEVEL_VERBOSE
7777

78+
// Enable if you're having issues with the app outputting garbage characters on startup
79+
// #define SERIAL_INTERFACE_INIT_DELAY
80+
7881
// ============= END OF USER CONFIGURATION =================================================================
7982

8083

firmware/src/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ void setup() {
4747
// Initialize global resources
4848
initializeGlobalResources();
4949

50+
#ifdef SERIAL_INTERFACE_INIT_DELAY
5051
// Add a delay to allow the serial interface to initialize
5152
delay(4000);
53+
#endif
54+
5255
// Clear the serial buffer of any garbage
5356
while (Serial.available() > 0) {
5457
Serial.read();

0 commit comments

Comments
 (0)