Description
Describe the bug
The Serial Monitor doesn't print the value just received with the correct timestamp but with the one of the previous received value.
If the board sends A
at time 1
and B
at time 2
this would be the output, first:
1 -> A
1 ->
then:
1 -> A
1 -> B
2 ->
Changing the baud rate to a lower or higher one doesn't change a thing.
To Reproduce
Steps to reproduce the behavior:
- Create a Sketch with the following code:
void setup()
{
Serial.begin(2400);
while (!Serial);
}
void loop()
{
static byte x = 0;
Serial.println(x);
delay(10000);
x++;
}
- Upload it to your board
- Open the Serial Monitor
- Set the baud rate to 2400
- Click Toggle Timestamp if not already on
Notice how the timestamp for the value printed now is not correct but reference to the previous one.
Also the first value is printed two times.
Expected behavior
I expect the values to be printed on the correct timestamp when it's received by the PC.
Screenshots
issue.mp4
Desktop (please complete the following information):
- OS: Linux
- Version: 2.0.0-beta.7
Additional context
This issue has been original reported on the Arduino Forum: https://forum.arduino.cc/t/serial-monitor-gives-wrong-time-stamp