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
parent
eace014494
commit
4dbb8f3956
|
|
@ -202,7 +202,7 @@ bool FlexRay::Controller::configure(std::chrono::milliseconds timeout) {
|
||||||
first->frameLengthBytes = clusterConfig.PayloadLengthOfStaticSlotInWords * 2;
|
first->frameLengthBytes = clusterConfig.PayloadLengthOfStaticSlotInWords * 2;
|
||||||
first->baseCycle = 0;
|
first->baseCycle = 0;
|
||||||
first->cycleRepetition = 1;
|
first->cycleRepetition = 1;
|
||||||
first->continuousMode = true;
|
first->continuousMode = false;
|
||||||
staticTx.push_back(first);
|
staticTx.push_back(first);
|
||||||
firstUsed = true;
|
firstUsed = true;
|
||||||
|
|
||||||
|
|
@ -215,7 +215,7 @@ bool FlexRay::Controller::configure(std::chrono::milliseconds timeout) {
|
||||||
second->frameLengthBytes = clusterConfig.PayloadLengthOfStaticSlotInWords * 2;
|
second->frameLengthBytes = clusterConfig.PayloadLengthOfStaticSlotInWords * 2;
|
||||||
second->baseCycle = 0;
|
second->baseCycle = 0;
|
||||||
second->cycleRepetition = 1;
|
second->cycleRepetition = 1;
|
||||||
second->continuousMode = true;
|
second->continuousMode = false;
|
||||||
staticTx.push_back(second);
|
staticTx.push_back(second);
|
||||||
secondUsed = true;
|
secondUsed = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue