File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
examples/SARA-R5_Example1_GNSS_GPRMC Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -72,13 +72,6 @@ void setup()
72
72
Serial.println (F (" SARA-R5 connected!" ));
73
73
}
74
74
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
-
82
75
// Enable power for the GNSS active antenna
83
76
// On the MicroMod Asset Tracker, the SARA GPIO2 pin is used to control power for the antenna.
84
77
// We need to pull GPIO2 (Pin 23) high to enable the power.
@@ -90,6 +83,8 @@ void setup()
90
83
// Enable the timing information request with +UTIMEIND=1
91
84
// Reset the time offset configuration with +UTIMECFG=0,0
92
85
// 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
93
88
94
89
// Enable the timing information request (URC)
95
90
// mySARA.setUtimeIndication(); // Use default (SARA_R5_UTIME_URC_CONFIGURATION_ENABLED)
You can’t perform that action at this time.
0 commit comments