[Fix] ctrlTerm doesn't get DATA when flag TERMREQ_FBK absent

This commit is contained in:
xdrm-brackets 2017-04-29 17:09:31 +02:00
parent e4b9d5daa6
commit 4af2f8180c
1 changed files with 2 additions and 1 deletions

View File

@ -447,7 +447,7 @@ void* manageCtrlTerm(void* THREADABLE_ARGS){
count = recv(arg->sgca->socket[pindex], buffer, sizeof(char), 0);
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;
}
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[0] = request.flags;
dataBuffer[1] = 0;
dataLen = 2;
}
break;