Skip to content

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

@Hyperdimensionals

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)).

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