Browse Source

Allow configuration commands to work in test mode.

Georgi Chorbadzhiyski 9 years ago
parent
commit
ce38b9baac
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      videohubctrl.c

+ 2
- 0
videohubctrl.c View File

243
 static void send_device_command(struct videohub_data *d, char *cmd_buffer) {
243
 static void send_device_command(struct videohub_data *d, char *cmd_buffer) {
244
 	if (!test_data)
244
 	if (!test_data)
245
 		fdwrite(d->dev_fd, cmd_buffer, strlen(cmd_buffer));
245
 		fdwrite(d->dev_fd, cmd_buffer, strlen(cmd_buffer));
246
+	else
247
+		parse_text_buffer(d, cmd_buffer);
246
 }
248
 }
247
 
249
 
248
 int main(int argc, char **argv) {
250
 int main(int argc, char **argv) {

Loading…
Cancel
Save