1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2026-02-11 07:03:07 +01:00

separate building AIS class 24

This commit is contained in:
wellenvogel
2025-09-28 18:37:26 +02:00
parent 3f22164b1d
commit d0966159c0

View File

@@ -879,6 +879,7 @@ private:
setTalkerChannel(NMEA0183AISMsg,_AISInfo); setTalkerChannel(NMEA0183AISMsg,_AISInfo);
if (SetAISClassBMessage24PartA(NMEA0183AISMsg, _MessageID, _Repeat, _UserID, _Name)) if (SetAISClassBMessage24PartA(NMEA0183AISMsg, _MessageID, _Repeat, _UserID, _Name))
{ {
SendMessage(NMEA0183AISMsg);
} }
} }
return; return;
@@ -908,17 +909,10 @@ private:
tNMEA0183AISMsg NMEA0183AISMsg; tNMEA0183AISMsg NMEA0183AISMsg;
setTalkerChannel(NMEA0183AISMsg,_AISInfo); setTalkerChannel(NMEA0183AISMsg,_AISInfo);
if (SetAISClassBMessage24(NMEA0183AISMsg, _MessageID, _Repeat, _UserID, _VesselType, _Vendor, _Callsign, if (SetAISClassBMessage24PartB(NMEA0183AISMsg, _MessageID, _Repeat, _UserID, _VesselType, _Vendor, _Callsign,
_Length, _Beam, _PosRefStbd, _PosRefBow, _MothershipID)) _Length, _Beam, _PosRefStbd, _PosRefBow, _MothershipID))
{ {
if (NMEA0183AISMsg.BuildMsg24PartA()){ SendMessage(NMEA0183AISMsg);
SendMessage(NMEA0183AISMsg);
}
if (NMEA0183AISMsg.BuildMsg24PartB()){
SendMessage(NMEA0183AISMsg);
}
} }
} }
return; return;