From 01fa28c236c1254ee86a95b728dce7cd170ec199 Mon Sep 17 00:00:00 2001 From: andreika-git Date: Sat, 9 Mar 2024 00:14:38 +0200 Subject: [PATCH] fix CanReceivePacket https://github.com/rusefi/rusefi/issues/6043 --- firmware/bootloader/openblt_chibios/openblt_can.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/bootloader/openblt_chibios/openblt_can.cpp b/firmware/bootloader/openblt_chibios/openblt_can.cpp index a882fbce68..79bbdae650 100644 --- a/firmware/bootloader/openblt_chibios/openblt_can.cpp +++ b/firmware/bootloader/openblt_chibios/openblt_can.cpp @@ -92,7 +92,7 @@ extern "C" blt_bool CanReceivePacket(blt_int8u *data, blt_int8u *len) } // Check that the ID type matches this frame (std vs ext) - constexpr bool configuredAsExt = (rxMsgId & 0x80000000) == 0; + constexpr bool configuredAsExt = (rxMsgId & 0x80000000) != 0; if (configuredAsExt != frame.IDE) { // Wrong frame type return BLT_FALSE;