Skip to content

timeout period is longer than necessary #12

@philwmcdonald

Description

@philwmcdonald

Calculated TBit is 1/10 the real value due to a missing zero. For 19200 baud TBit is 52ms not 5ms.
and 52 vs 50 isn't 40% different it's 4%. so the *14 to recover the missing resolution goes too far.

Probably shouldn't wait 2 frames for a response either.

A better timeout value would be:
timeout = (34+90)*1000000UL/serialSpd;

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