parseLatDir and parseLonDir difference
loky32 opened this issue · 2 comments
Hi, I write because found a difference between this two functions that need similar treatment:
Adafruit_GPS/src/Adafruit_GPS.cpp
Lines 233 to 246 in 2471501
Adafruit_GPS/src/Adafruit_GPS.cpp
Lines 282 to 297 in 2471501
My question is, ¿Why in latitude the condition (if (!isEmpty(p))) is not requiered?
I think that this is a problem because when the value is not present, if you are in the south of Ecuador your latitude value can change of sign.
Good catch! Coordinates always arrive as DDMM.mmmm,S for a southern latitude, so it should always find an S and does in my tests. In any case I hope it will soon be moot, as parseCoord() will replace all four lat lon in the pending pull request.