From bba9dcc2f225b889ca3efc5299635e28c569a8c6 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Sat, 16 Dec 2017 17:05:43 +0100 Subject: [PATCH] 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. --- build/shared/lib/preferences.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/build/shared/lib/preferences.txt b/build/shared/lib/preferences.txt index ec1852e58c6..f442cdb3e66 100644 --- a/build/shared/lib/preferences.txt +++ b/build/shared/lib/preferences.txt @@ -272,6 +272,7 @@ serial.databits=8 serial.stopbits=1 serial.parity=N serial.debug_rate=9600 +serial.line_ending=1 # I18 Preferences