Skip to content

Bridge usage will hang 32u4 sketch upon ar9331 reboot #2351

@arve0

Description

@arve0

BridgeClass::transfer blindly accepts receive length (Bridge.cpp line 179) and keeps reading instead of discarding even if above receive buffer (line 192). This makes sketch on 32u4 hang if it runs a bridge command when ar9331 restarts (process, console, etc).

This also affects #2028.

Forum threads possibly affected:
http://forum.arduino.cc/index.php?topic=222941.0
http://forum.arduino.cc/index.php?topic=271090.0
http://forum.arduino.cc/index.php?topic=204077.0
http://forum.arduino.cc/index.php?topic=222476.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions