Fix inaccurate error message when TX completes near a 1 second boundary.

This commit is contained in:
Martin Ling
2022-09-21 11:42:21 +01:00
committed by Michael Ossmann
parent 98faa5429f
commit cb8fc333aa

View File

@ -1413,7 +1413,7 @@ int main(int argc, char** argv)
time_start = time_now;
if ((completed_count_now == 0) && (!hw_sync)) {
if ((completed_count_now == 0) && (!hw_sync) && (!tx_complete)) {
exit_code = EXIT_FAILURE;
fprintf(stderr,
"\nCouldn't transfer any bytes for one second.\n");