Skip to content

Serial.swap() generates mangled characters. #2380

Closed
@PhilColbert

Description

@PhilColbert

When I do a Serial.swap() in a loop, many characters come out messsed up.

If I slow the loop down by putting a delay of perhaps 100, it then works, still some characters are bad, any ideas how to stop this?

I will be using the swap in a program that needs lots of speed !

Thanks

On a Nodemcu.

extern "C" {

include <user_interface.h>

}

int i=0;

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

void loop()
{

Serial.print("Loop No: ");
Serial.println(i);
// delay(100);
Serial.swap();
i++;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for feedbackWaiting on additional info. If it's not received, the issue may be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions