Fix inaccurate error message when TX completes near a 1 second boundary.
This commit is contained in:

committed by
Michael Ossmann

parent
98faa5429f
commit
cb8fc333aa
@ -1413,7 +1413,7 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
time_start = time_now;
|
time_start = time_now;
|
||||||
|
|
||||||
if ((completed_count_now == 0) && (!hw_sync)) {
|
if ((completed_count_now == 0) && (!hw_sync) && (!tx_complete)) {
|
||||||
exit_code = EXIT_FAILURE;
|
exit_code = EXIT_FAILURE;
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\nCouldn't transfer any bytes for one second.\n");
|
"\nCouldn't transfer any bytes for one second.\n");
|
||||||
|
Reference in New Issue
Block a user