Skip to content

peek() returns zero #46

@cider101

Description

@cider101

Is there a reason, that peek() is implemented with return 0 ?
a simple implementation would be

return rxHead == rxTail ? -1 : rxBuffer[rxTail];

or have i overseen something ?

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