Skip to content

Commit

Permalink
Fix #255: Timeout option on actisense-serial
Browse files Browse the repository at this point in the history
  • Loading branch information
Kees Verruijt committed Oct 4, 2021
1 parent b6bff5c commit 9db281f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

actisense-serial:
- #255: Fix handling of timeout argument

common:
- #248: Use R bit for PGN number calculation for use with J1939.

Expand Down
4 changes: 2 additions & 2 deletions actisense-serial/actisense-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ int main(int argc, char **argv)
}
}

for (wait = 1;;)
for (wait = timeout;;)
{
unsigned char msg[BUFFER_SIZE];
int r = isReady(writeonly ? INVALID_SOCKET : handle, readonly ? INVALID_SOCKET : STDIN_FILENO, INVALID_SOCKET, wait);
Expand Down Expand Up @@ -314,7 +314,7 @@ int main(int argc, char **argv)
}
else
{
wait = 1;
wait = timeout;
if (writeonly)
{
break;
Expand Down

0 comments on commit 9db281f

Please sign in to comment.