From eace014494241c2631b80a9c72dca19085e96c27 Mon Sep 17 00:00:00 2001 From: Paul Hollinsky Date: Mon, 17 Jan 2022 00:12:30 -0500 Subject: [PATCH] FlexRay: Don't enforce key slot rules on non-keyslots --- device/extensions/flexray/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device/extensions/flexray/controller.cpp b/device/extensions/flexray/controller.cpp index b8c61e6..ee37d23 100644 --- a/device/extensions/flexray/controller.cpp +++ b/device/extensions/flexray/controller.cpp @@ -225,7 +225,7 @@ bool FlexRay::Controller::configure(std::chrono::milliseconds timeout) { if(!buf->isTransmit) continue; // Only transmit frames need to be written to the controller - if(buf->frameID == controllerConfig.KeySlotID) { + if((controllerConfig.KeySlotUsedForSync || controllerConfig.KeySlotOnlyEnabled) && buf->frameID == controllerConfig.KeySlotID) { first = buf; staticTx[0] = buf; // Enforce keyslot rules