From 6b03e0c1406f8493c8b9a5d2313f84740a33e718 Mon Sep 17 00:00:00 2001 From: Giulio Tranchida Date: Sat, 3 Oct 2020 10:51:25 +0200 Subject: [PATCH] passage variables by reference --- src/TinyGsmGPS.tpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TinyGsmGPS.tpp b/src/TinyGsmGPS.tpp index 73af243..4c333cc 100644 --- a/src/TinyGsmGPS.tpp +++ b/src/TinyGsmGPS.tpp @@ -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); }