Clean up data types.
This commit is contained in:
@@ -144,11 +144,13 @@ unsigned int getValue(unsigned char receipient, unsigned char reg)
|
||||
printf("error: could not send value to node %s" _NL, getNodeName(receipient));
|
||||
|
||||
retry:
|
||||
|
||||
timeout = TIMEOUT_VALUE;
|
||||
while(timeout-- && !CanReceiveGetCount(0))
|
||||
usleep(TIMEOUT_US);
|
||||
|
||||
if (timeout == -1) {
|
||||
if (timeout == -1)
|
||||
{
|
||||
printf("error: no response from node %s" _NL, getNodeName(receipient));
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user