Fixes to last commit
This commit is contained in:
parent
f08c25812f
commit
823d9df423
20
src/cpm.c
20
src/cpm.c
|
|
@ -618,26 +618,6 @@ void *cp_service(void *fc){
|
|||
continue;
|
||||
}
|
||||
|
||||
int j = 0;
|
||||
int temp_data = ((int)(au8_readBuffer[12])) >> 4;
|
||||
|
||||
for(int i = temp_data;i < READ_BUFFER_SIZE; i++){
|
||||
au8_readBuffer[j] = au8_readBuffer[i];
|
||||
j++;
|
||||
}
|
||||
|
||||
temp_data = ((int)(au8_readBuffer[0])) & 0x0f;
|
||||
|
||||
j = 0;
|
||||
for(int i = temp_data;i < READ_BUFFER_SIZE; i++){
|
||||
au8_readBuffer[j] = au8_readBuffer[i];
|
||||
j++;
|
||||
}
|
||||
|
||||
if(i32_recv_bytes < 0){
|
||||
syslog_debug("No data received from radar ...");
|
||||
break;
|
||||
}
|
||||
|
||||
/* Information parsing */
|
||||
parse_input(au8_readBuffer,i32_recv_bytes);
|
||||
|
|
|
|||
Loading…
Reference in New Issue