Skip to content

Commit 478a57a

Browse files
author
Scott Powell
committed
* AdvertDataParser: lat/lon can now be zeroes
1 parent 12a2f34 commit 478a57a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/AdvertDataHelpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class AdvertDataParser {
5757
bool hasName() const { return _name[0] != 0; }
5858
const char* getName() const { return _name; }
5959

60-
bool hasLatLon() const { return !(_lat == 0 && _lon == 0); }
60+
bool hasLatLon() const { return (_flags & ADV_LATLON_MASK) != 0; }
6161
int32_t getIntLat() const { return _lat; }
6262
int32_t getIntLon() const { return _lon; }
6363
double getLat() const { return ((double)_lat) / 1000000.0; }

0 commit comments

Comments
 (0)