Skip to content

onLocation is never called due to bad flag check #3

@martin-gudmundson

Description

@martin-gudmundson

I'm using this library to parse GPGGA data and expect it to call the onLocation callback when parsing succeeds. However it never gets through the flag check in the start of yieldLocation since I only ever try to parse FLAG_GGA data.

This is the line i'm talking about

if ((flags | flag & LOCATION_FLAGS) == LOCATION_FLAGS) {

Am I using the library incorrectly? I've changed the following line to if ((flags | flag & LOCATION_FLAGS) != 0) instead to get it to work.

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