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.
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
yieldLocationsince I only ever try to parseFLAG_GGAdata.This is the line i'm talking about
android-nmea-parser/src/main/java/com/github/petr_s/nmea/NMEAParser.java
Line 62 in 1abfb41
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.