- ascon.c: bug fix
- binprot.c: enhancements - devser.c, scriptcontext.c: introduced specifiaction of start time in poll
This commit is contained in:
20
ascon.c
20
ascon.c
@ -284,14 +284,15 @@ int AsconWriteChars(int fd, char *data, int length)
|
||||
|
||||
if (length <= 0)
|
||||
return 0;
|
||||
/*
|
||||
{ int i;
|
||||
for (i=0; i<length; i++) {
|
||||
PrintChar(data[i]);
|
||||
}
|
||||
}
|
||||
printf("<written\n");
|
||||
*/
|
||||
|
||||
/* { int i;
|
||||
for (i=0; i<length; i++) {
|
||||
PrintChar(data[i]);
|
||||
}
|
||||
}
|
||||
printf("<written\n");
|
||||
*/
|
||||
|
||||
FD_ZERO(&wmask);
|
||||
FD_SET(fd, &wmask);
|
||||
ret = uselect(fd + 1, NULL, &wmask, NULL, &tmo);
|
||||
@ -814,8 +815,7 @@ int AsconWrite(Ascon * a, char *command, int noResponse)
|
||||
a->noResponse = noResponse;
|
||||
a->state = AsconWriteStart;
|
||||
a->responseValid = 0;
|
||||
AsconTask(a);
|
||||
return 1;
|
||||
return AsconTask(a);
|
||||
}
|
||||
|
||||
char *AsconRead(Ascon * a)
|
||||
|
Reference in New Issue
Block a user