From 6564f4f5d4706621e468a2125c0f0a5dbc8c1853 Mon Sep 17 00:00:00 2001 From: diekleinekuh Date: Fri, 17 Feb 2023 17:52:25 +0100 Subject: [PATCH] issue flow control messages on the scanned bus --- bus_protocols/isotp_handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bus_protocols/isotp_handler.cpp b/bus_protocols/isotp_handler.cpp index 249a550..0f27be3 100644 --- a/bus_protocols/isotp_handler.cpp +++ b/bus_protocols/isotp_handler.cpp @@ -249,7 +249,7 @@ void ISOTP_HANDLER::processFrame(const CANFrame &frame) messageBuffer.insert(msg.frameId(), msg); //The sending ID is set to the last ID we used to send from this class which is //very likely to be correct. But, caution, there is a chance that it isn't. Beware. - if (issueFlowMsgs && lastSenderID > 0) + if (issueFlowMsgs && lastSenderID > 0 && lastSenderBus==frame.bus) { CANFrame outFrame; outFrame.bus = lastSenderBus;