Skip to content

Commit 8365c9f

Browse files
committed
some cleanup of serial monitor output
1 parent 28963a8 commit 8365c9f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

firmware/src/main.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ void addWidgets() {
4646
void setup() {
4747
// Initialize global resources
4848
initializeGlobalResources();
49+
50+
// Add a delay to allow the serial interface to initialize
51+
delay(4000);
52+
// Clear the serial buffer of any garbage
53+
while (Serial.available() > 0) {
54+
Serial.read();
55+
}
56+
4957
Serial.begin(115200);
5058
Log.begin(LOG_LEVEL, &Serial);
5159
Log.noticeln("Starting up...");

platformio.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ lib_deps =
7070
tzapu/WiFiManager@^2.0.17
7171
thijse/ArduinoLog@^1.1.1
7272
monitor_speed = 115200
73+
monitor_filters =
74+
send_on_enter
75+
default
7376
extra_scripts =
7477
; Get git branch/commit info
7578
pre:scripts/generate_git_info.py

0 commit comments

Comments
 (0)