Skip to content

Espruino.Core.Serial.getPorts can callback too early #194

Closed
@rikkuness

Description

@rikkuness

I've been trying to track down why Espruino.Core.Serial.getPorts was not returning local serial devices on my system (Arch Linux). What I discovered was that callback was being called before ports is being fully populated, even calling again with shouldCallAgain it appears to be actually a race condition, the ports are being returned by the device but not until after the callback is hit.

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