SlashDevin / NeoGPS

NMEA and ublox GPS parser for Arduino, configurable to use as few as 10 bytes of RAM
GNU General Public License v3.0
714 stars 196 forks source link

Info: is it feasible to display the raw NMEA lines received? #116

Open amontefusco opened 5 years ago

amontefusco commented 5 years ago

Hi, experimenting with NeoGPs on ESP32, it is working fine. I was wondering if there is a simple way to display on the Serial, for debugging purposes, all the NMEA sentences received.

bamapookie commented 5 years ago

You could insert a line to output the characters at src/NMEAGPS.cpp:289.

NMEAGPS::decode_t NMEAGPS::handle( uint8_t c )
{
  DEBUG_PORT.print((char)c); // Something like this, but you would need to make sure DEBUG_PORT was available.
  decode_t res = decode( c );
...

Edited to include (char) cast.