Browse Source

Fix wrong timeout (it should be in ms when passed to fdread_ex)

Bug reported by: https://github.com/jfpanisset
Georgi Chorbadzhiyski 3 years ago
parent
commit
46b46e9011
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      videohubctrl.c

+ 1
- 1
videohubctrl.c View File

428
 	if (test_data)
428
 	if (test_data)
429
 		return 0;
429
 		return 0;
430
 	memset(buf, 0, sizeof(buf));
430
 	memset(buf, 0, sizeof(buf));
431
-	while ((ret = fdread_ex(d->dev_fd, buf, sizeof(buf) - 1, timeout, 0, 1)) >= 0) {
431
+	while ((ret = fdread_ex(d->dev_fd, buf, sizeof(buf) - 1, timeout * 1000, 0, 1)) >= 0) {
432
 		ncommands += parse_text_buffer(d, buf);
432
 		ncommands += parse_text_buffer(d, buf);
433
 		memset(buf, 0, sizeof(buf));
433
 		memset(buf, 0, sizeof(buf));
434
 	}
434
 	}

Loading…
Cancel
Save