|
@@ -201,8 +201,8 @@ bool parse_command(struct videohub_data *d, char *cmd) {
|
201
|
201
|
break;
|
202
|
202
|
case PARSE_DIR:
|
203
|
203
|
s_port->port[port_num].direction = DIR_AUTO;
|
204
|
|
- if (streq("control", port_data)) s_port->port[port_num].direction = DIR_CONTROL;
|
205
|
|
- if (streq("slave", port_data)) s_port->port[port_num].direction = DIR_SLAVE;
|
|
204
|
+ if (streq("control", port_data)) s_port->port[port_num].direction = DIR_CONTROL;
|
|
205
|
+ else if (streq("slave", port_data)) s_port->port[port_num].direction = DIR_SLAVE;
|
206
|
206
|
break;
|
207
|
207
|
case PARSE_ROUTE:
|
208
|
208
|
dest_port_num = strtoul(port_data, NULL, 10);
|