Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Label persists on the Legend even after the message is no longer in the Plotter #17

Open
nmzaheer opened this issue Sep 10, 2022 · 0 comments
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@nmzaheer
Copy link
Contributor

Describe the problem

Incorrect Label persist even after the message has changed

To reproduce

Equipment

  • Arduino board

Steps

  1. Upload the following sketch to your Arduino board
int random_variable;
int static_variable = 500;

void setup() {
  Serial.begin(9600);
}

void loop() {
  random_variable = random(0, 1000);

  Serial.print("Variable 1:");
  Serial.print(random_variable);
  Serial.print(",");
  Serial.print("Variable 2:");
  Serial.println(static_variable);
}
  1. Open Serial Plottel
  2. Ensure the baud rate is set to 9600 baud
  3. With the Serial Plotter open to the side, now modify the sketch to the following
int random_variable;
int static_variable = 500;

void setup() {
  Serial.begin(9600);
}

void loop() {
  random_variable = random(0, 1000);

  Serial.print("Random:");
  Serial.print(random_variable);
  Serial.print(",");
  Serial.print("Static:");
  Serial.println(static_variable);
}
  1. Upload the modified sketch to the Arduino board and observe the legend on the top corner of the Serial Plotter

Serial Plotter Output
SerialPlotter LabelLegendBug

Steps to reproduce - Video

ArduinoSerialPlotterLabel.Bug.mp4

Expected behavior

SerialPlotter LabelLegendExpect

Arduino IDE version

Version: 2.0.0-rc9.4
Date: 2022-09-08T08:06:43.499Z
CLI Version: 0.27.1 [a900cfb2]

Operating system

Windows

Operating system version

Windows 10 21H2

Additional context

The Legend is updated and shown correctly when

  • The Serial Plotter window is closed & reopened again OR
  • The Plotter is STOP & RUN once
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants