Skip to content

Commit 8e515a2

Browse files
matthijskooijmanfacchinm
authored andcommitted
Let serial monitor send newline by default
The serial.line_ending value was not present in the default preferences file, so the default was implicitly 0, meaning "No line ending". Since users often do not realize that they can even choose a line ending, and "no line ending" is only rarely useful, it seems better to default to sending a newline. Using both CR & NL would be more consistent with Stream.println on the Arduino side, but just sending a newline is probably easier to parse on the Arduino side.
1 parent 141ed72 commit 8e515a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/shared/lib/preferences.txt

+1
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ serial.databits=8
272272
serial.stopbits=1
273273
serial.parity=N
274274
serial.debug_rate=9600
275+
serial.line_ending=1
275276

276277
# I18 Preferences
277278

0 commit comments

Comments
 (0)