Skip to content

Commit 1bf5ccd

Browse files
committed
Don't call gpsPower from gpsEnableRmc. Call gpsPower separately if required.
1 parent daba8e1 commit 1bf5ccd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/SparkFun_u-blox_SARA-R5_Arduino_Library.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2847,14 +2847,14 @@ SARA_R5_error_t SARA_R5::gpsEnableRmc(boolean enable)
28472847
SARA_R5_error_t err;
28482848
char *command;
28492849

2850-
if (!isGPSon())
2851-
{
2852-
err = gpsPower(true);
2853-
if (err != SARA_R5_ERROR_SUCCESS)
2854-
{
2855-
return err;
2856-
}
2857-
}
2850+
// if (!isGPSon())
2851+
// {
2852+
// err = gpsPower(true);
2853+
// if (err != SARA_R5_ERROR_SUCCESS)
2854+
// {
2855+
// return err;
2856+
// }
2857+
// }
28582858

28592859
command = sara_r5_calloc_char(strlen(SARA_R5_GNSS_GPRMC) + 3);
28602860
if (command == NULL)

0 commit comments

Comments
 (0)