Browse Source

passage variables by reference

v_master
Giulio Tranchida 4 years ago
parent
commit
6b03e0c140
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/TinyGsmGPS.tpp

+ 1
- 1
src/TinyGsmGPS.tpp 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);
} }


Loading…
Cancel
Save