Skip to content

Commit daba8e1

Browse files
committed
Update SARA-R5_Example1_GNSS_GPRMC.ino
1 parent 946dd75 commit daba8e1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

examples/SARA-R5_Example1_GNSS_GPRMC/SARA-R5_Example1_GNSS_GPRMC.ino

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,6 @@ void setup()
7272
Serial.println(F("SARA-R5 connected!"));
7373
}
7474

75-
// Enable the GPS's RMC sentence output. This will also turn the
76-
// GPS module on ((mySARA.gpsPower(true)) if it's not already
77-
if (mySARA.gpsEnableRmc(true) != SARA_R5_SUCCESS) {
78-
Serial.println(F("Error initializing GPS. Freezing..."));
79-
while (1) ;
80-
}
81-
8275
// Enable power for the GNSS active antenna
8376
// On the MicroMod Asset Tracker, the SARA GPIO2 pin is used to control power for the antenna.
8477
// We need to pull GPIO2 (Pin 23) high to enable the power.
@@ -90,6 +83,8 @@ void setup()
9083
// Enable the timing information request with +UTIMEIND=1
9184
// Reset the time offset configuration with +UTIMECFG=0,0
9285
// Request PPS output using GNSS+LTE (Best effort) with +UTIME=1,1
86+
// The bit that doesn't seem to be mentioned in the documentation is that +UTIME=1,1 also
87+
// enables the GPS module and so we don't need to call gpsPower or gpsEnableRmc
9388

9489
// Enable the timing information request (URC)
9590
//mySARA.setUtimeIndication(); // Use default (SARA_R5_UTIME_URC_CONFIGURATION_ENABLED)

0 commit comments

Comments
 (0)