FlexRay: Don't set default key slots to continuous

This way they will come out as NULL frames, which is likely
more appropriate for a default.

This only takes effect if you set a key slot, but then don't
configure a message buffer for it.
v0.3.0-dev
Paul Hollinsky 2022-01-17 00:15:45 -05:00
parent eace014494
commit 4dbb8f3956
1 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ bool FlexRay::Controller::configure(std::chrono::milliseconds timeout) {
first->frameLengthBytes = clusterConfig.PayloadLengthOfStaticSlotInWords * 2;
first->baseCycle = 0;
first->cycleRepetition = 1;
first->continuousMode = true;
first->continuousMode = false;
staticTx.push_back(first);
firstUsed = true;
@ -215,7 +215,7 @@ bool FlexRay::Controller::configure(std::chrono::milliseconds timeout) {
second->frameLengthBytes = clusterConfig.PayloadLengthOfStaticSlotInWords * 2;
second->baseCycle = 0;
second->cycleRepetition = 1;
second->continuousMode = true;
second->continuousMode = false;
staticTx.push_back(second);
secondUsed = true;
}