diff --git a/canfdtest.c b/canfdtest.c index 2407027..d7ba740 100644 --- a/canfdtest.c +++ b/canfdtest.c @@ -239,7 +239,7 @@ static int can_echo_dut(void) } gettimeofday(&tvn, NULL); while ((tv_stop.tv_sec > tvn.tv_sec) || - ((tv_stop.tv_sec = tvn.tv_sec) && + ((tv_stop.tv_sec == tvn.tv_sec) && (tv_stop.tv_usec >= tvn.tv_usec))) gettimeofday(&tvn, NULL); }