Skip to content

Commit 5dd4f84

Browse files
authored
Merge pull request #900 from kubiak-jpl/dev/issue-4092-dp-crc
Removed calls to updateDataHash() from component generated code
2 parents 5fb5083 + 2c94575 commit 5dd4f84

15 files changed

+0
-30
lines changed

compiler/lib/src/main/scala/codegen/CppWriter/ComponentCppWriter/ComponentDataProducts.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ case class ComponentDataProducts (
117117
|container.setTimeTag(timeTag);
118118
|// Serialize the header into the packet
119119
|container.serializeHeader();
120-
|// Update the data hash
121-
|container.updateDataHash();
122120
|// Update the size of the buffer according to the data size
123121
|const FwSizeType packetSize = container.getPacketSize();
124122
|Fw::Buffer buffer = container.getBuffer();

compiler/tools/fpp-to-cpp/test/component/base/ActiveAsyncProductsComponentAc.ref.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3486,8 +3486,6 @@ void ActiveAsyncProductsComponentBase ::
34863486
container.setTimeTag(timeTag);
34873487
// Serialize the header into the packet
34883488
container.serializeHeader();
3489-
// Update the data hash
3490-
container.updateDataHash();
34913489
// Update the size of the buffer according to the data size
34923490
const FwSizeType packetSize = container.getPacketSize();
34933491
Fw::Buffer buffer = container.getBuffer();

compiler/tools/fpp-to-cpp/test/component/base/ActiveGetProductsComponentAc.ref.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3341,8 +3341,6 @@ void ActiveGetProductsComponentBase ::
33413341
container.setTimeTag(timeTag);
33423342
// Serialize the header into the packet
33433343
container.serializeHeader();
3344-
// Update the data hash
3345-
container.updateDataHash();
33463344
// Update the size of the buffer according to the data size
33473345
const FwSizeType packetSize = container.getPacketSize();
33483346
Fw::Buffer buffer = container.getBuffer();

compiler/tools/fpp-to-cpp/test/component/base/ActiveGuardedProductsComponentAc.ref.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3423,8 +3423,6 @@ void ActiveGuardedProductsComponentBase ::
34233423
container.setTimeTag(timeTag);
34243424
// Serialize the header into the packet
34253425
container.serializeHeader();
3426-
// Update the data hash
3427-
container.updateDataHash();
34283426
// Update the size of the buffer according to the data size
34293427
const FwSizeType packetSize = container.getPacketSize();
34303428
Fw::Buffer buffer = container.getBuffer();

compiler/tools/fpp-to-cpp/test/component/base/ActiveSyncProductsComponentAc.ref.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3417,8 +3417,6 @@ void ActiveSyncProductsComponentBase ::
34173417
container.setTimeTag(timeTag);
34183418
// Serialize the header into the packet
34193419
container.serializeHeader();
3420-
// Update the data hash
3421-
container.updateDataHash();
34223420
// Update the size of the buffer according to the data size
34233421
const FwSizeType packetSize = container.getPacketSize();
34243422
Fw::Buffer buffer = container.getBuffer();

compiler/tools/fpp-to-cpp/test/component/base/ActiveTestComponentAc.ref.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6746,8 +6746,6 @@ namespace M {
67466746
container.setTimeTag(timeTag);
67476747
// Serialize the header into the packet
67486748
container.serializeHeader();
6749-
// Update the data hash
6750-
container.updateDataHash();
67516749
// Update the size of the buffer according to the data size
67526750
const FwSizeType packetSize = container.getPacketSize();
67536751
Fw::Buffer buffer = container.getBuffer();

compiler/tools/fpp-to-cpp/test/component/base/PassiveGetProductsComponentAc.ref.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2391,8 +2391,6 @@ void PassiveGetProductsComponentBase ::
23912391
container.setTimeTag(timeTag);
23922392
// Serialize the header into the packet
23932393
container.serializeHeader();
2394-
// Update the data hash
2395-
container.updateDataHash();
23962394
// Update the size of the buffer according to the data size
23972395
const FwSizeType packetSize = container.getPacketSize();
23982396
Fw::Buffer buffer = container.getBuffer();

compiler/tools/fpp-to-cpp/test/component/base/PassiveGuardedProductsComponentAc.ref.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2473,8 +2473,6 @@ void PassiveGuardedProductsComponentBase ::
24732473
container.setTimeTag(timeTag);
24742474
// Serialize the header into the packet
24752475
container.serializeHeader();
2476-
// Update the data hash
2477-
container.updateDataHash();
24782476
// Update the size of the buffer according to the data size
24792477
const FwSizeType packetSize = container.getPacketSize();
24802478
Fw::Buffer buffer = container.getBuffer();

compiler/tools/fpp-to-cpp/test/component/base/PassiveSyncProductsComponentAc.ref.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2467,8 +2467,6 @@ void PassiveSyncProductsComponentBase ::
24672467
container.setTimeTag(timeTag);
24682468
// Serialize the header into the packet
24692469
container.serializeHeader();
2470-
// Update the data hash
2471-
container.updateDataHash();
24722470
// Update the size of the buffer according to the data size
24732471
const FwSizeType packetSize = container.getPacketSize();
24742472
Fw::Buffer buffer = container.getBuffer();

compiler/tools/fpp-to-cpp/test/component/base/PassiveTestComponentAc.ref.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5054,8 +5054,6 @@ void PassiveTestComponentBase ::
50545054
container.setTimeTag(timeTag);
50555055
// Serialize the header into the packet
50565056
container.serializeHeader();
5057-
// Update the data hash
5058-
container.updateDataHash();
50595057
// Update the size of the buffer according to the data size
50605058
const FwSizeType packetSize = container.getPacketSize();
50615059
Fw::Buffer buffer = container.getBuffer();

0 commit comments

Comments
 (0)