Skip to content

Why is VEserial.begin() called within the read() function? #14

Description

@Hyperdimensionals

Hello,

I'm curious why the VESerial.begin() function is called within the VEdirect.read() function. My understanding is that serial.begin() is typically called once when initially establishing the serial connection. Does this make it more resilient if the serial port gets temporarily disconnected?

I also noticed that in the VEDirect::begin() function, VESerial.begin() is called with the Baud rate hard-coded (VESerial.begin(19200), while in the VEDirect::read() function, it's called with the macro constant (VESerial.begin(VED_BAUD_RATE)).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions