diff options
author | Aleksandar Bozhinovski <aleksandar.bozhinovski@seavus.com> | 2012-01-23 16:37:39 +0100 |
---|---|---|
committer | Viktor Mladenovski <viktor.mladenovski@seavus.com> | 2012-05-25 14:42:48 +0200 |
commit | a08c80408fca5875a895747e0ea6dc1aca29df18 (patch) | |
tree | 8a1bb8a7d8876c394bee19d0bd235253b93e3edf /lcmodule/source/cnh1605204_ldr_transport_layer/source/bulk_protocol.c | |
parent | 1f19de4d7fe07671dfa91961a8e562124a734528 (diff) |
Fix: Dump area cmd ends with negative speed
Fix for dump area command ends with negative speed.
ST-Ericsson ID: 403011
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10204
Change-Id: I2737059dcca62d769ca1876a4859f7c468fcfdd9
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/46144
Reviewed-by: Vlatko PISTOLOV <vlatko.pistolov@seavus.com>
Tested-by: Vlatko PISTOLOV <vlatko.pistolov@seavus.com>
Tested-by: Cvetko MLADENOVSKI <cvetko.mladenovski@seavus.com>
Reviewed-by: Viktor MLADENOVSKI <viktor.mladenovski@stericsson.com>
Diffstat (limited to 'lcmodule/source/cnh1605204_ldr_transport_layer/source/bulk_protocol.c')
-rw-r--r-- | lcmodule/source/cnh1605204_ldr_transport_layer/source/bulk_protocol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/source/bulk_protocol.c b/lcmodule/source/cnh1605204_ldr_transport_layer/source/bulk_protocol.c index b04d715..9e20d59 100644 --- a/lcmodule/source/cnh1605204_ldr_transport_layer/source/bulk_protocol.c +++ b/lcmodule/source/cnh1605204_ldr_transport_layer/source/bulk_protocol.c @@ -1148,7 +1148,7 @@ static void R15_Bulk_SerializeChunk(Communication_t *Communication_p, PacketMeta /* Set extended header parameters */ ExtendedHeader.Session = BulkVector_p->SessionId; ExtendedHeader.AcksChunk = (uint8)ChunkId; - ExtendedHeader.ChunkSize = BulkVector_p->ChunkSize; + ExtendedHeader.ChunkSize = Header.PayloadLength; ExtendedHeader.Offset = BulkVector_p->Offset; ExtendedHeader.Length = BulkVector_p->Length; ExtendedHeader.TypeFlags = CMD_BULK_DATA; @@ -1598,8 +1598,8 @@ static ErrorCode_e R15_Bulk_DataRequestHandler(Communication_t *Communication_p, if (!IsChunkReceived(Communication_p, ChunkId)) { BulkVector_p->TransferedLength += BulkVector_p->ChunkSize; pcbf = (BulkDataReqCallback_t)R15_TRANSPORT(Communication_p)->BulkDataCallback_p; - pcbf(Communication_p->Object_p, BulkVector_p->SessionId, BulkVector_p->ChunkSize, BulkVector_p->Offset, BulkVector_p->Length, BulkVector_p->TotalLength, BulkVector_p->TransferedLength); - C_(printf("S(%d) L(%d) CS(%d)\n", BulkVector_p->SessionId, BulkVector_p->Length, BulkVector_p->ChunkSize);) //xvsvlpi + pcbf(Communication_p->Object_p, BulkVector_p->SessionId, ExtendedHeader.ChunkSize, BulkVector_p->Offset, BulkVector_p->Length, BulkVector_p->TotalLength, BulkVector_p->TransferedLength); + C_(printf("S(%d) L(%d) CS(%d)\n", BulkVector_p->SessionId, BulkVector_p->Length, BulkVector_p->ChunkSize);) } } |