avoid double counting of sent N2k messages

This commit is contained in:
andreas 2023-11-01 18:11:26 +01:00
parent 259901abe3
commit 6884881bcf
1 changed files with 0 additions and 1 deletions

View File

@ -204,7 +204,6 @@ void handleN2kMessage(const tN2kMsg &n2kMsg,int sourceId, bool isConverted=false
nmea0183Converter->HandleMsg(n2kMsg,sourceId);
}
if (sourceId != N2K_CHANNEL_ID && sendOutN2k){
countNMEA2KOut.add(n2kMsg.PGN);
if (NMEA2000.SendMsg(n2kMsg)){
countNMEA2KOut.add(n2kMsg.PGN);
}