Commit bde362ba authored by Georgi Chorbadzhiyski's avatar Georgi Chorbadzhiyski

dvblastctl: Fix get_pids and get_pid commands.

The table describing commands was messed up and also
there was a break missing in command build up.
parent 9b460837
...@@ -192,8 +192,8 @@ static const struct dvblastctl_option options[] = ...@@ -192,8 +192,8 @@ static const struct dvblastctl_option options[] =
{ "get_nit", 0, CMD_GET_NIT }, { "get_nit", 0, CMD_GET_NIT },
{ "get_sdt", 0, CMD_GET_SDT }, { "get_sdt", 0, CMD_GET_SDT },
{ "get_pmt", 1, CMD_GET_PMT }, /* arg: service_id (uint16_t) */ { "get_pmt", 1, CMD_GET_PMT }, /* arg: service_id (uint16_t) */
{ "get_pids", 0, CMD_RELOAD }, { "get_pids", 0, CMD_GET_PIDS },
{ "get_pid", 1, CMD_RELOAD }, /* arg: pid (uint16_t) */ { "get_pid", 1, CMD_GET_PID }, /* arg: pid (uint16_t) */
{ NULL, 0, 0 } { NULL, 0, 0 }
}; };
...@@ -388,6 +388,7 @@ int main( int i_argc, char **ppsz_argv ) ...@@ -388,6 +388,7 @@ int main( int i_argc, char **ppsz_argv )
i_size = COMM_HEADER_SIZE + 2; i_size = COMM_HEADER_SIZE + 2;
p_data[0] = (uint8_t)((i_pid >> 8) & 0xff); p_data[0] = (uint8_t)((i_pid >> 8) & 0xff);
p_data[1] = (uint8_t)(i_pid & 0xff); p_data[1] = (uint8_t)(i_pid & 0xff);
break;
} }
case CMD_MMI_SEND_TEXT: case CMD_MMI_SEND_TEXT:
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment