modem_shell: fix compilation error.
fix error: 'struct modem_shell_user_data' has no member named 'shell' Signed-off-by: Mark Kettner <mark@kettner.io>
This commit is contained in:
parent
a44f61c5f5
commit
a0418f1821
1 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ static void uart_mux_cb(const struct device *uart, const struct device *dev,
|
||||||
int dlci_address, void *user_data)
|
int dlci_address, void *user_data)
|
||||||
{
|
{
|
||||||
struct modem_shell_user_data *data = user_data;
|
struct modem_shell_user_data *data = user_data;
|
||||||
const struct shell *sh = data->shell;
|
const struct shell *sh = data->sh;
|
||||||
int *count = data->user_data;
|
int *count = data->user_data;
|
||||||
const char *ch = "?";
|
const char *ch = "?";
|
||||||
|
|
||||||
|
@ -235,7 +235,7 @@ static int cmd_modem_info(const struct shell *sh, size_t argc, char *argv[])
|
||||||
struct modem_shell_user_data user_data;
|
struct modem_shell_user_data user_data;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
user_data.shell = sh;
|
user_data.sh = sh;
|
||||||
user_data.user_data = &count;
|
user_data.user_data = &count;
|
||||||
|
|
||||||
uart_mux_foreach(uart_mux_cb, &user_data);
|
uart_mux_foreach(uart_mux_cb, &user_data);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue