Skip to content

Serial Plotter requires \r\n line endings #1360

Closed
@sellensr

Description

@sellensr

Describe the problem

Plotter appears to ignore lines that don't end with both \r and \n in that order. Previous versions worked with lines ending in \n, as does the serial monitor.

I'm not sure if this is an intended behaviour. It isn't mentioned in the tutorial at https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-serial-plotter

To reproduce

Serial.printf("A:%d,Var2:%d\n",random_variable,static_variable);

and look for output on Serial Plotter. Then change to

Serial.printf("A:%d,Var2:%d\r\n",random_variable,static_variable);

Expected behavior

I would expect the plotter to function with any permutation of line endings, e.g. detect \r or \n as an ending, then discard any additional \r or \n until new line begins.

Arduino IDE version

IDE 2.0 rc9.2

Operating system

macOS

Operating system version

12.5.1

Additional context

No response

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions