Skip to content

serial.begin(baudrate) resets the full configuration of serial #5026

Closed
@fabianoriccardi

Description

@fabianoriccardi

Hi,
Looking at HardwareSerial.h:

serial.begin(9600);

This calls does not only set the baud rates, but it resets the full configuration to the default values (even rx and tx pins). Is it an intended behavior or is a bug?

I think that if I do not specify further parameters, these shouldn't be changed.

I tested this behavior on latest commit 371f382

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions