Skip to content

Serial.flush() is broken #118

@eiten

Description

@eiten

Serial.flush is skipping the last 8 characters of serial output! Sketch:

void setup() {
  Serial.begin(115200);
  Serial.println("Sending some text that needs to be displayed, It's a rather long text, so it is still sending whern Serial.flush() kicks in");
  Serial.flush();
  Serial.println();
  Serial.println("Also with shorter texts");
  Serial.flush();
} 

void loop() {
}

Correct output on a LoRa 32:

Sending some text that needs to be displayed, It's a rather long text, so it is still sending whern Serial.flush() kicks in

Also with shorter texts

Broken output on a CobeCell board:

Sending some text that needs to be displayed, It's a rather long text, so it is still sending whern Serial.flush() k
Also with shorte

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions