mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-14 22:43:07 +01:00
avoid double counting of sent N2k messages
This commit is contained in:
@@ -204,7 +204,6 @@ void handleN2kMessage(const tN2kMsg &n2kMsg,int sourceId, bool isConverted=false
|
|||||||
nmea0183Converter->HandleMsg(n2kMsg,sourceId);
|
nmea0183Converter->HandleMsg(n2kMsg,sourceId);
|
||||||
}
|
}
|
||||||
if (sourceId != N2K_CHANNEL_ID && sendOutN2k){
|
if (sourceId != N2K_CHANNEL_ID && sendOutN2k){
|
||||||
countNMEA2KOut.add(n2kMsg.PGN);
|
|
||||||
if (NMEA2000.SendMsg(n2kMsg)){
|
if (NMEA2000.SendMsg(n2kMsg)){
|
||||||
countNMEA2KOut.add(n2kMsg.PGN);
|
countNMEA2KOut.add(n2kMsg.PGN);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user