passage variables by reference
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user