- Reworked the connection object and the IO system
- Reworked the support for TRICS - Added a second generation motor
This commit is contained in:
@ -237,7 +237,7 @@ int readRS232TillTerm(prs232 self, void *data, int *datalen){
|
||||
}
|
||||
else if(iRet == -1)
|
||||
{
|
||||
printf("Incomplete read: %s\n", (char *)data);
|
||||
printf("Incomplete read: %s, errno = %d\n", (char *)data, errno);
|
||||
return INCOMPLETE;
|
||||
}
|
||||
else if (iRet < 0)
|
||||
@ -374,7 +374,7 @@ int transactRS232(prs232 self, void *send, int sendLen,
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("RS232 IN/TRANS/INCOMPLETE: %s",(char *)reply);
|
||||
printf("RS232 IN/TRANS/INCOMPLETE: %s, errno = %d",(char *)reply, errno);
|
||||
}
|
||||
}
|
||||
if(iRet == 0)
|
||||
|
Reference in New Issue
Block a user