passage variables by reference

This commit is contained in:
Giulio Tranchida
2020-10-03 10:51:25 +02:00
parent 6203ebd27c
commit 6b03e0c140

View File

@@ -39,7 +39,7 @@ class TinyGsmGPS {
int* second) {
float lat = 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);
}