Skip to content

Cannot create more than one instance #32

Description

@dhalbert

Attempting to create more than one Adafruit_BNO08x fails, because i2c_dev is a static global, and gets discarded and re-created on the second call to the Adafruit_BNO08x constructor. I believe the i2c_dev should be a field in the device object.

See https://discord.com/channels/327254708534116352/537365760008257569/1273319381597687828 for a thread about this.

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