Browse Source

Merge pull request #6 from jfpanisset/videohub288_large_response

Handle larger responses from Universal Videohub 288
Georgi Chorbadzhiyski 3 years ago
parent
commit
fda00b424c
No account linked to committer's email address
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      videohubctrl.c

+ 5
- 1
videohubctrl.c View File

420
 
420
 
421
 static int read_device_command_stream(struct videohub_data *d) {
421
 static int read_device_command_stream(struct videohub_data *d) {
422
 	int ret, ncommands = 0;
422
 	int ret, ncommands = 0;
423
-	char buf[8192 + 1];
423
+        /* On a Universal Videohub 288 you can get 3231 lines of output,
424
+         * let's assume worst case of 80 characters per line, so a 300KB
425
+         * message.
426
+         */
427
+        char buf[300 * 1024 + 1];
424
 	if (test_data)
428
 	if (test_data)
425
 		return 0;
429
 		return 0;
426
 	memset(buf, 0, sizeof(buf));
430
 	memset(buf, 0, sizeof(buf));

Loading…
Cancel
Save