Update taskGPS.cpp
This commit is contained in:
parent
a9cbffb4d5
commit
7e4657ac91
|
|
@ -24,14 +24,14 @@ void taskGPS(void *parameter) {
|
||||||
// https://github.com/lora-aprs/TTGO-T-Beam_GPS-reset
|
// https://github.com/lora-aprs/TTGO-T-Beam_GPS-reset
|
||||||
if(myGPS.begin(gpsSerial)){
|
if(myGPS.begin(gpsSerial)){
|
||||||
myGPS.setUART1Output(COM_TYPE_NMEA); //Set the UART port to output NMEA only
|
myGPS.setUART1Output(COM_TYPE_NMEA); //Set the UART port to output NMEA only
|
||||||
myGPS.saveConfiguration(); //Save the current settings to flash and BBR
|
//myGPS.saveConfiguration(); //Save the current settings to flash and BBR
|
||||||
myGPS.disableNMEAMessage(UBX_NMEA_GLL, COM_PORT_UART1);
|
myGPS.disableNMEAMessage(UBX_NMEA_GLL, COM_PORT_UART1);
|
||||||
myGPS.disableNMEAMessage(UBX_NMEA_GSA, COM_PORT_UART1);
|
myGPS.disableNMEAMessage(UBX_NMEA_GSA, COM_PORT_UART1);
|
||||||
myGPS.disableNMEAMessage(UBX_NMEA_GSV, COM_PORT_UART1);
|
myGPS.disableNMEAMessage(UBX_NMEA_GSV, COM_PORT_UART1);
|
||||||
myGPS.disableNMEAMessage(UBX_NMEA_VTG, COM_PORT_UART1);
|
myGPS.disableNMEAMessage(UBX_NMEA_VTG, COM_PORT_UART1);
|
||||||
myGPS.disableNMEAMessage(UBX_NMEA_RMC, COM_PORT_UART1);
|
myGPS.disableNMEAMessage(UBX_NMEA_RMC, COM_PORT_UART1);
|
||||||
myGPS.enableNMEAMessage(UBX_NMEA_GGA, COM_PORT_UART1);
|
myGPS.enableNMEAMessage(UBX_NMEA_GGA, COM_PORT_UART1);
|
||||||
myGPS.saveConfiguration(); //Save the current settings to flash and BBR
|
//myGPS.saveConfiguration(); //Save the current settings to flash and BBR
|
||||||
delay(1000);
|
delay(1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue