Skip to content

Calling Bus::end() before Bus::begin(...) ends in a infinite loop #110

@Darthyson

Description

@Darthyson

Bus::end() calls Bus::canPause(false), which will always return false because Bus::state is Bus::INIT at this point, as we haven´t called Bus::begin(...) yet.

I suggest changing

if (state == IDLE)
return true;

to
if ((state == IDLE) || (state == INIT))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions