Support PTNL parent NMEA message

PTNL is parent to e.g. AVR, BPQ, DG, EVT, GGK, PJK, PJT, VGK, VHD
This commit is contained in:
Joachim Spange 2025-01-28 15:18:25 +01:00
parent b79651cc4b
commit 128a8b1604

View file

@ -188,6 +188,11 @@ namespace NmeaParser.Messages
string[] parts = message.Split(new char[] { ',' });
string MessageType = parts[0].Substring(1);
if (MessageType == "PTNL") {
// PTNL is parent to e.g. AVR, GGK etc.
MessageType = parts[1];
parts = parts.Skip(1).ToArray();
}
if (MessageType == string.Empty)
throw new ArgumentException("Missing NMEA Message Type");
string[] MessageParts = parts.Skip(1).ToArray();