File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 75
75
// LOG_LEVEL_WARNING, LOG_LEVEL_NOTICE, LOG_LEVEL_VERBOSE
76
76
#define LOG_LEVEL LOG_LEVEL_VERBOSE
77
77
78
- // Enable if you're having issues with the app outputting garbage characters on startup
79
- // #define SERIAL_INTERFACE_INIT_DELAY
78
+ // Enable if you're having issues with the app outputting garbage characters on startup, delay in ms
79
+ // #define SERIAL_INTERFACE_INIT_DELAY 4000
80
80
81
81
// ============= END OF USER CONFIGURATION =================================================================
82
82
Original file line number Diff line number Diff line change @@ -49,15 +49,16 @@ void setup() {
49
49
50
50
#ifdef SERIAL_INTERFACE_INIT_DELAY
51
51
// Add a delay to allow the serial interface to initialize
52
- delay (4000 );
52
+ delay (SERIAL_INTERFACE_INIT_DELAY );
53
53
#endif
54
54
55
+ Serial.begin (115200 );
56
+
55
57
// Clear the serial buffer of any garbage
56
58
while (Serial.available () > 0 ) {
57
59
Serial.read ();
58
60
}
59
61
60
- Serial.begin (115200 );
61
62
Log.begin (LOG_LEVEL, &Serial);
62
63
Log.noticeln (" 🚀 Starting up..." );
63
64
You can’t perform that action at this time.
0 commit comments