Description
Describe the problem
Arduino IDE's Serial Monitor and Serial Plotter each have a Line Ending menu. This menu controls the type of line ending that is appended to data sent via their message field.
Picking the correct line ending is essential when sending data to a board running a sketch that only correctly parses received data with a specific line ending (which is common).
Arduino IDE has a nice feature where changing the Line Ending menu selection in Serial Monitor also changes it in Serial Plotter, and vice versa.
However, the two menus are not synced when the interfaces are opened. Each has a different behavior:
- Serial Plotter: "New Line" is always selected in the menu when the plotter is opened, even when a different option was already set in the open Serial Monitor view.
- Serial Monitor: the option selected during the previous Serial Monitor session is selected in the menu when the monitor is opened, even when a different option was already set in the open Serial Plotter window.
The two interfaces are only synced after the user changes the selection in one of them while they are both open.
🐛 Users accustomed to the convenient setting sync during other phases of operation may not notice the two interfaces have different settings and be confused when the data they send is not correctly parsed by the board.
To reproduce
- Select any board and port in Arduino IDE.
- Open the "Serial Monitor" view (Tools > Serial Monitor) if it is not already open.
- Select "Carriage Return" from the Line Ending menu in the Serial Monitor view.
- Select Tools > Serial Plotter from the Arduino IDE menus.
- Check the setting in the Line Ending menu in the Serial Plotter window.
🐛 The Serial Plotter window's menu is set to "New Line":
- Close the "Serial Monitor" view (Tools > Serial Monitor).
- Select "Both NL & CR" from the Line Ending menu in the Serial Plotter Window.
- Open the "Serial Monitor" view.
- Check the setting in the Line Ending menu in the Serial Monitor view.
🐛 The Serial Monitor view's menu is set to "Carriage Return".
Expected behavior
Line Ending setting is always in sync in Serial Monitor and Serial Plotter.
Arduino IDE version
2.0.2
Operating system
Windows
Operating system version
10
Additional context
The bug does not occur with the baudrate menus.
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details