[Fix] ctrlTerm doesn't get DATA when flag TERMREQ_FBK absent
This commit is contained in:
parent
e4b9d5daa6
commit
4af2f8180c
|
@ -447,7 +447,7 @@ void* manageCtrlTerm(void* THREADABLE_ARGS){
|
||||||
count = recv(arg->sgca->socket[pindex], buffer, sizeof(char), 0);
|
count = recv(arg->sgca->socket[pindex], buffer, sizeof(char), 0);
|
||||||
|
|
||||||
if( count != sizeof(char) ){
|
if( count != sizeof(char) ){
|
||||||
printf("{udp_cterm}{com}(%d) Cannot get response from plane %d (%d)\n", index, count, PLANE_LEN);
|
printf("{udp_cterm}{com}(%d) Cannot get response from plane %d (%d)\n", index, count, (int) PLANE_LEN);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
printf("{udp_cterm}{com}(%d) Plane res { flags: %d }\n", index, buffer[0]);
|
printf("{udp_cterm}{com}(%d) Plane res { flags: %d }\n", index, buffer[0]);
|
||||||
|
@ -467,6 +467,7 @@ void* manageCtrlTerm(void* THREADABLE_ARGS){
|
||||||
dataBuffer = realloc(dataBuffer, sizeof(char)*2 );
|
dataBuffer = realloc(dataBuffer, sizeof(char)*2 );
|
||||||
dataBuffer[0] = request.flags;
|
dataBuffer[0] = request.flags;
|
||||||
dataBuffer[1] = 0;
|
dataBuffer[1] = 0;
|
||||||
|
dataLen = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue