Skip to content

nmea-source: Don't disconnect when receiving an empty message

Teemu Ikonen requested to merge tpikonen/geoclue:nmea-empty-msg into master

I've been trying to get the GNSS unit on the Pinephone to work through gnss-share, which for some reason outputs a NULL, but no error, when first connecting to its socket.

This patch converts the NULL to an empty string and keeps on listening to the socket. This does not seem to cause any further problems with the socket source.

@maciejsszmigiero, you have probably tested this with a network NMEA source (and have authored the current code). Do you see any problems with this?

Merge request reports