diff options
author | Petar Dimoski <Petar.Dimoski@seavus.com> | 2011-08-16 07:38:10 +0100 |
---|---|---|
committer | Viktor Mladenovski <viktor.mladenovski@seavus.com> | 2011-09-29 10:27:21 +0200 |
commit | 910f860a59057158193d3ae16568fc0af8bd0d57 (patch) | |
tree | 048943bb7643ab0b5aad14910bb833906d09b0b9 /lcmodule/source/cnh1605204_ldr_transport_layer/source/a2_speedflash.c | |
parent | c83cab43652930dadde059517f7fb076357cbd2b (diff) |
Fix astyle in Loader Communication Module.
ST-Ericsson ID: 346088
ST-Ericsson FOSS-OUT ID: NA
Change-Id: Ib3dee092ba3c16e550bc6d1e2335cf817b7e8ec8
Depends-On: Ib3dee092ba3c16e550bc6d1e2335cf817b7e8ec8
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/26000
Tested-by: Aleksandar GASOSKI <aleksandar.gasoski@seavus.com>
Tested-by: Cvetko MLADENOVSKI <cvetko.mladenovski@seavus.com>
Reviewed-by: Vlatko PISTOLOV <vlatko.pistolov@seavus.com>
Tested-by: Vlatko PISTOLOV <vlatko.pistolov@seavus.com>
Diffstat (limited to 'lcmodule/source/cnh1605204_ldr_transport_layer/source/a2_speedflash.c')
-rw-r--r--[-rwxr-xr-x] | lcmodule/source/cnh1605204_ldr_transport_layer/source/a2_speedflash.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/source/a2_speedflash.c b/lcmodule/source/cnh1605204_ldr_transport_layer/source/a2_speedflash.c index abb6b58..aea0149 100755..100644 --- a/lcmodule/source/cnh1605204_ldr_transport_layer/source/a2_speedflash.c +++ b/lcmodule/source/cnh1605204_ldr_transport_layer/source/a2_speedflash.c @@ -84,10 +84,12 @@ ErrorCode_e A2_Speedflash_Poll(Communication_t *Communication_p) A2_SPEEDFLASH(Communication_p)->InboundState = A2_SPEEDFLASH_WAIT_READ_REQ; #ifdef CFG_ENABLE_LOADER_TYPE + if (E_SUCCESS != Communication_p->CommunicationDevice_p->Read((void *)A2_SPEEDFLASH(Communication_p)->Scratch, A2_SPEEDFLASH_REQ_SIZE, A2_Speedflash_ReadCallback, Communication_p->CommunicationDevice_p)) { A2_SPEEDFLASH(Communication_p)->InboundState = A2_SPEEDFLASH_READ_REQ; } + #else (void)Communication_p->CommunicationDevice_p->Read((void *)A2_SPEEDFLASH(Communication_p)->Scratch, A2_SPEEDFLASH_REQ_SIZE, A2_Speedflash_ReadCallback, Communication_p->CommunicationDevice_p); @@ -118,7 +120,7 @@ ErrorCode_e A2_Speedflash_Poll(Communication_t *Communication_p) void A2_Speedflash_WriteCallback(const void *Data_p, const uint32 Length, void *Param_p) { - Communication_t *Communication_p = (Communication_t*)(((CommunicationDevice_t*)Param_p)->Object_p); + Communication_t *Communication_p = (Communication_t *)(((CommunicationDevice_t *)Param_p)->Object_p); A2_SPEEDFLASH(Communication_p)->Outbound_p = NULL; A2_SPEEDFLASH(Communication_p)->OutboundSize = 0; @@ -136,7 +138,7 @@ void A2_Speedflash_WriteCallback(const void *Data_p, const uint32 Length, void * void A2_Speedflash_ReadCallback(const void *Data_p, const uint32 Length, void *Param_p) { - Communication_t *Communication_p = (Communication_t*)(((CommunicationDevice_t*)Param_p)->Object_p); + Communication_t *Communication_p = (Communication_t *)(((CommunicationDevice_t *)Param_p)->Object_p); A2_CommandData_t CmdData; CmdData.Type = A2_SPEEDFLASH_GR; |