-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Description
Customer brought up an error in the SFE Forums [ https://forum.sparkfun.com/viewtopic.php?f=14&t=39246#p176148 ]. GPS example code [ https://github.com/sparkfun/Weather_Shield/blob/master/firmware/Weather_Shield_with_GPS/Weather_Shield_with_GPS.ino ] has an error in the code when printing the variable name with the variable. Instead of saying longitude=, the code says that the latitude is equal to the longitude's value on line 445:
Serial.print(",lat=");
Serial.print(gps.location.lat(), 6);
Serial.print(",lat=");
Serial.print(gps.location.lng(), 6);
It should probably say:
Serial.print(",lat=");
Serial.print(gps.location.lat(), 6);
Serial.print(",lng=");
Serial.print(gps.location.lng(), 6);
Metadata
Metadata
Assignees
Labels
No labels