Skip to content

Wire library is closed when GPS is not wired #4

@machadors

Description

@machadors

I'm using Arduino MKRGSM 1400 and MKR GPS shield connected via I2C.

If the I2C is not wired (GPS shield is not connected at all) when calling GPS.begin(); it ends up calling (twice) _wire->end(); which closes wire library.

If there is more than one I2C device wire.begin(); needs to be called again.

I think _wire->end(); shouldn't be called as you can never be sure if there is more than one I2C device.

Thanks for your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions