From 34bd2a762fddf8d0ea9aa2083c84fd1d31b6f4a2 Mon Sep 17 00:00:00 2001 From: diekleinekuh Date: Tue, 21 Feb 2023 14:52:16 +0100 Subject: [PATCH] fix compile warning about comparing different types --- 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 0f27be3..1553da4 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 && lastSenderBus==frame.bus) + if (issueFlowMsgs && lastSenderID > 0 && lastSenderBus==static_cast(frame.bus)) { CANFrame outFrame; outFrame.bus = lastSenderBus;