mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-01-29 11:54:40 +01:00
✨ 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:
parent
b79651cc4b
commit
128a8b1604
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue