Browse Source

Merge pull request #1 from toontoet/master

Fixed reading data getting truncated using a 40x40 video hub
Georgi Chorbadzhiyski 6 years ago
parent
commit
0e4a7340c6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      videohubctrl.c

+ 1
- 1
videohubctrl.c View File

@@ -416,7 +416,7 @@ static int read_device_command_stream(struct videohub_data *d) {
416 416
 	if (test_data)
417 417
 		return 0;
418 418
 	memset(buf, 0, sizeof(buf));
419
-	while ((ret = fdread_ex(d->dev_fd, buf, sizeof(buf) - 1, 5, 0, 0)) >= 0) {
419
+	while ((ret = fdread_ex(d->dev_fd, buf, sizeof(buf) - 1, 5, 0, 1)) >= 0) {
420 420
 		ncommands += parse_text_buffer(d, buf);
421 421
 		memset(buf, 0, sizeof(buf));
422 422
 	}

Loading…
Cancel
Save