Merge pull request #446 from trixymoon/master

passage variables by reference
This commit is contained in:
Sara Damiano
2020-10-27 14:51:02 -04:00
committed by GitHub

View File

@@ -39,7 +39,7 @@ class TinyGsmGPS {
int* second) { int* second) {
float lat = 0; float lat = 0;
float lon = 0; float lon = 0;
return thisModem().getGPSImpl(lat, lon, 0, 0, 0, 0, 0, year, month, day, return thisModem().getGPSImpl(&lat, &lon, 0, 0, 0, 0, 0, year, month, day,
hour, minute, second); hour, minute, second);
} }