botletics / SIM7000-LTE-Shield

Botletics SIM7000 LTE CAT-M1/NB-IoT Shield for Arduino
https://www.botletics.com/products/sim7000-shield
GNU General Public License v3.0
481 stars 216 forks source link

fona.getGPS() Example mistake? #221

Closed alexseuf closed 3 years ago

alexseuf commented 3 years ago

Hello,

in fona.getGPS() Example at https://github.com/botletics/SIM7000-LTE-Shield/wiki/Library-Functions#example-54

line 17 is: // if (fona.getGPS(&latitude, &longitude, &speed_kph, &heading, &altitude, &year, &month, &day, &hour, &minute, &second)) { but should be: // if (! fona.getGPS(&latitude, &longitude, &speed_kph, &heading, &altitude, &year, &month, &day, &hour, &minute, &second)) {

with actual code you get everytime into the error mesage wihtout having an error.

botletics commented 3 years ago

Thanks, fixed it!