mirror of
https://github.com/vshymanskyy/TinyGSM.git
synced 2026-05-15 04:06:10 +00:00
No disable GPS on SARA-R5
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -166,7 +166,7 @@ void loop() {
|
||||
|
||||
// Test the GPS functions
|
||||
#if defined(TINY_GSM_MODEM_HAS_GPS) && not defined(__AVR_ATmega32U4__)
|
||||
#if !defined(TINY_GSM_MODEM_SARAR5) // not needed for this module
|
||||
#if !defined(TINY_GSM_MODEM_SARAR5) // not available for this module
|
||||
modem.enableGPS();
|
||||
#endif
|
||||
modem.getGPSraw();
|
||||
@@ -186,8 +186,10 @@ void loop() {
|
||||
modem.getGPS(&latitude, &longitude);
|
||||
modem.getGPS(&latitude, &longitude, &speed, &alt, &vsat, &usat, &acc, &year,
|
||||
&month, &day, &hour, &minute, &second);
|
||||
#if !defined(TINY_GSM_MODEM_SARAR5) // not available for this module
|
||||
modem.disableGPS();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Test the Network time function
|
||||
#if defined(TINY_GSM_MODEM_HAS_NTP) && not defined(__AVR_ATmega32U4__)
|
||||
|
||||
Reference in New Issue
Block a user