Skip to content

MicroBitSerial::read(ASYNC) skips incoming bytes #441

@martinwork

Description

@martinwork

https://github.com/lancaster-university/microbit-dal/blob/master/source/drivers/MicroBitSerial.cpp#L649

while((temp = getChar(mode)) != MICROBIT_NO_DATA && bufferIndex < bufferLen)

The order of the tests needs reversing. Similar to #201, which has been fixed.

I'll make a PR.

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