Skip to content

Commit bf7b291

Browse files
committed
Ensure NMEA messages are enabled in Examples 1 and 2
1 parent 794966b commit bf7b291

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

examples/Example1_BasicNMEARead/Example1_BasicNMEARead.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ void setup()
3939
while (1);
4040
}
4141

42+
myGNSS.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA); //Set the I2C port to output both NMEA and UBX messages
43+
myGNSS.saveConfigSelective(VAL_CFG_SUBSEC_IOPORT); //Save (only) the communications port settings to flash and BBR
44+
4245
//This will pipe all NMEA sentences to the serial port so we can see them
4346
myGNSS.setNMEAOutputPort(Serial);
4447
}

examples/Example2_NMEAParsing/Example2_NMEAParsing.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ void setup()
4646
while (1);
4747
}
4848

49+
myGNSS.setI2COutput(COM_TYPE_UBX | COM_TYPE_NMEA); //Set the I2C port to output both NMEA and UBX messages
50+
myGNSS.saveConfigSelective(VAL_CFG_SUBSEC_IOPORT); //Save (only) the communications port settings to flash and BBR
51+
4952
myGNSS.setProcessNMEAMask(SFE_UBLOX_FILTER_NMEA_ALL); // Make sure the library is passing all NMEA messages to processNMEA
5053

5154
myGNSS.setProcessNMEAMask(SFE_UBLOX_FILTER_NMEA_GGA); // Or, we can be kind to MicroNMEA and _only_ pass the GGA messages to it

0 commit comments

Comments
 (0)