Clean up data types.

This commit is contained in:
2025-12-21 12:06:14 +01:00
parent c382ba472d
commit acce874133
10 changed files with 31 additions and 28 deletions

View File

@@ -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;
}